From: "Lance Ivy" <la...@cainlevy.net>
Date: Mon, 23 Apr 2007 08:32:34 -0700
Local: Mon, Apr 23 2007 11:32 am
Subject: Re: How to use start_year and end_year on a date column
Could you check the stack trace? That looks like a completely different On 4/22/07, Vorik <goo...@gerapeldoorn.nl> wrote: > Hi again, > This is still a problem for me, any insights (or pointers to some > Thanks, > On 18 apr, 07:44, Vorik <goo...@gerapeldoorn.nl> wrote: > > 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 > > > 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 > > > > 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 > > > > > I think it is because of the select's name. Here is an excerpt of > > > > > 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 > > > > > > 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 > > > > > > > date_select :geboortedatum, :order => > > > > > > > The funny thing is that in 'edit mode', the years start at > > > > > > > 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.
| ||||||||||||||