I''ll answer my own question:
<%= select_month @person.born,:prefix => :person ,:field_name
=> "born(2i)" %>
<%= select_day @person.born,:prefix => :person , :field_name
=> "born(3i)" %>
<%= text_field_tag "person[born(1i)]", value
@person.born.year,:size => 4 %>
On Jul 26, 9:23 am, AppleII717 <sa...-ee4meeAH724@public.gmane.org>
wrote:> I have a date where the year range is more then I want to define in a
> select_date scaffold generated year range.
>
> My idea was to have the year entered as a text field and the month and
> day using something like:
>
> <%= select_month @person.born,:prefix => :person ,:field_name =>
> "born(2i)" %>
> <%= select_day @person.born,:prefix => :person , :field_name =>
> "born(3i)" %>
>
> <%= f.text_field ?????? or text_field_tag ???????? field_name =>
> "born(1i)" %>
>
> I just can''t seem to find the set of options to build the year
tag.
> Guess I also would have to extract the year out of the date for the
> value.
>
> Can''t seem to find any examples and looking for help.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.