I’m quite fresh ruby on rails developer and i’m experiencing some troubles with displaying date_field in user profile edit form. It suddenly stopped working and i can’t debug what’s wrong and why it’s not working. Here is my code:
_form.html.haml
= form_for(@profile) do |f|
= f.label :dob, 'Date of birth', :class => 'control-label'
= f.date_select :dob, :start_year => Time.now.year - 50, :end_year => Time.now.year - 5, :include_blank => true
It gives me the following error:
can’t convert Symbol into String
on line 26 which is the one with date_select. I’m getting this error no matter if dob field is empty or not. Have you any idea what am i possibly missing? The strange thing is that it was working yesterday.
maybe a little late, but I found something here:
http://i18n.lighthouseapp.com/projects/14947/tickets/12-i18n-and-date_select-exception
Best regards,
Dinah
edit: I had to change date order in locale .yml to