From: Vorik <goo...@gerapeldoorn.nl>
Date: Tue, 17 Apr 2007 03:10:05 -0700
Local: Tues, Apr 17 2007 6:10 am
Subject: Re: How to use start_year and end_year on a date column
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: > Thanks for the tip Lance, but I'm not there yet.... This is what I've
> come up with: > ---------------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 in > > > 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.
| ||||||||||||||