Guest

Untitled

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