Forum: Ruby on Rails Setting AR attribute from date_select values?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ben J. (Guest)
on 2007-07-30 20:16
I have a date select:

<%= form_fields.date_select :birthday_on, :order => [:month, :day,
:year], :start_year => 1900 %>

In my controller I want to set the individual attribute. How do I do

user.birthday_on = params[:user][:birthday_on]

How do I convert this to a date so it set properly?

Thanks for your time!
This topic is locked and can not be replied to.