On 14 August 2011 07:42, Andrew <[email protected]> wrote:
> I could easily write the HTML to create a few select elements, however, it's 
> the Ruby part that I am not as familiar with. Could you provide an example of 
> what the controller code (or model, helper, etc) would look like to convert 
> the 3 fields into a valid time value ready to store in a database?

Just take the params values and convert them into a Time object.
Time.utc or Time.local may be useful.

Colin

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

Reply via email to