Search code examples
ruby-on-railsnomethoderrorview-helpers

Date Helper Editing in Rails


I am new to Rails. I tried to use date helper in a form for the user to enter his date of birth. In migration I created "dateofbirth" column set to type -"String". Now creating a record goes good. But, when I try to edit the record I am getting error. I searched various forms, I learnt about multi-parameter assignments, but I don't understand how to retrieve them seperately and make my update work. I am attaching an image of the error I got! Appreciate any help! Thanksenter image description here


Solution

  • down your migration and change field type "string" to "datetime".

    I think it will help you