Displaying 2 results from an estimated 2 matches for "birthday_on".
2007 Jul 30
0
Setting AR attribute from date_select values?
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
this?
user.birthday_on = params[:user][:birthday_on]
How do I convert this to a date so it set properly?
Thanks for your time!
--
Posted via http://www.ruby-fo...
2006 Sep 05
0
rake craziness with Migrate as a dependency
...t; 0.2310s
-- add_column(:users, "income", :string, {:default=>"", :limit=>50,
:null=>false})
-> 0.1800s
-- add_column(:users, "education", :string, {:default=>"", :limit=>50,
:null=>false})
-> 0.2100s
-- add_column(:users, "birthday_on", :date, {:null=>true})
-> 0.2110s
== AddProfileToUsers: migrated (5.6290s)
======================================
== CreateOrders: migrating
====================================================
-- create_table("orders", {:force=>true})
-> 0.1400s
== CreateOrders:...