From: Vorik <goo...@gerapeldoorn.nl>
Date: Tue, 17 Apr 2007 22:44:38 -0700
Local: Wed, Apr 18 2007 1:44 am
Subject: Re: How to use start_year and end_year on a date column
Hi Lance,
Unfortunately, your example gives an error(ActionView::TemplateError select_date record[:geboortedatum], :name => input_name, :order => does not store the values in the database..... This is the HTML source: Your help is very much appreciated!! Thanks, On Apr 17, 6:09 pm, "Lance Ivy" <l...@cainlevy.net> wrote: > we added a :name option to the date/time selects so that you can use the
> provided input_name. try: > select_date :record, :name => input_name, ... > On 4/17/07, Vorik <goo...@gerapeldoorn.nl> wrote: > > I'm a bit further. Now I'm using (in the helper) > > select_date record[:geboortedatum], :prefix => > > This makes the code for the select like this (note the name field): > > Without the override in the helper (which does save the values in the > > My code gives the value in a hash (record_geboortedatum[day]). It > > How can I achieve this little miracle??? > > Greetings & Salutations, > > On 17 apr, 09:30, Vorik <goo...@gerapeldoorn.nl> wrote: > > > ---------------leerling_helper.rb--------------- > > > The override is beiing used (order changed), but the values are not > > > I think it is because of the select's name. Here is an excerpt of the > > > Shouldn-t that be name="geboortedatum[day]"? > > > how can I change it? > > > Many thanks, > > > > Hi Ger, > > > > Your best bet here is probably to override the column on the form and > > > > On 4/15/07, Vorik <goo...@gerapeldoorn.nl> wrote: > > > > > Hi all, > > > > > I'm trying to insert a record containing a birthdate with > > > > > How can I set the starting year? With standard rails it is set like > > > > > date_select :geboortedatum, :order => > > > > > The funny thing is that in 'edit mode', the years start at 1969 but > > > > > Thanks in advance, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||