--
Posted via http://www.ruby-forum.com/.
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?
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/eYuCw14obR4J.
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Just take the params values and convert them into a Time object.
Time.utc or Time.local may be useful.
Colin
Then it's time to put rails away and buy a beginning ruby book.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.