On 15 Apr 2009, at 12:05, Dave Smith wrote:

>
> if i got a couple of radio buttons on my form that i want to use a
> published_at field rather than a boolean field how would i go about
> this? I know that if i'm using a boolean i can do the following.
>
> <%= f.radio_button :published_at, true %> Yes
> <%= f.radio_button :published_at, false %> No
>
> but what would i have to change to use the datetime field?
>
Are you expecting people to enter a date or to choose between one of  
several dates ?

Fred

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to