I highly recommend using jQueryUI Datepicker for more usable date selection.
However, if you want to have it your way, create fields in your model for
all the select boxes, and use the before_save callback to construct the
final date field for storing in the database.

Refer http://guides.rubyonrails.org/form_helpers.html#barebones-helpers

On Sun, Aug 14, 2011 at 12:12 PM, 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?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/eYuCw14obR4J.
> 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.
>
>

-- 
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