
Untitled
By: a guest on Jan 28th, 2012 | syntax:
None | size: 0.51 KB | hits: 26 | expires: Never
##View
<%= f.date_select(:birthday, :order => [:month, :day, :year], :start_year => 1900, :use_month_numbers => false,
:prompt => {:day => 'Select day', :month => 'Select month', :year => 'Select year'}) %>
##Renders
<select id="user_birthday_2i" name="user[birthday(2i)]">
<select id="user_birthday_3i" name="user[birthday(3i)]">
<select id="user_birthday_1i" name="user[birthday(1i)]">
##Question
Is there a way to change the field names to birthday_month, birthday_day, and birthday_year?