Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staycreativedesign/0adb22bdd9bbf58ce6c6940e18cf71e6 to your computer and use it in GitHub Desktop.
Save staycreativedesign/0adb22bdd9bbf58ce6c6940e18cf71e6 to your computer and use it in GitHub Desktop.
ActionView::Template::Error (undefined method `to_datetime' for 0:Fixnum):
208: <div class="col-sm-4 col-xs-7">
209: <%= f.select :dob_month, ['01', '02', '03','04', '05', '06','07', '08', '09','10', '11', '12'], :class => "float-right number", :prompt => "Month" %>
210: <%= f.select :dob_day, ['01', '02', '03','04', '05', '06','07', '08', '09','10', '11', '12','13', '14', '15','16', '17', '18','19', '20', '21','22','23', '24', '25','26', '27', '28','29', '30','31'], :class => "form-control margin-ten no-letter number", :prompt => "Day" %>
211: <%= f.date_select :dob_year, {:order => [:year], :start_year => 1920, :end_year => Time.now.year, :prompt => "Year" }, {:class => "texter"} %>
212: </div>
213: </div>
214: </div>
app/views/devise/registrations/_registrations.html.erb:211:in `block in _app_views_devise_registrations__registrations_html_erb__4136954747110916622_70221770454860'
app/views/devise/registrations/_registrations.html.erb:4:in `_app_views_devise_registrations__registrations_html_erb__4136954747110916622_70221770454860'
app/views/devise/registrations/new.html.erb:1:in `_app_views_devise_registrations_new_html_erb__3319898572222728665_70221762818780'
app/controllers/users/registrations_controller.rb:19:in `create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment