multiparameter error with datetime_select

后端 未结 6 746
傲寒
傲寒 2021-01-02 09:13

I have the following code in my form.

<%= f.datetime_select(:date_time, :prompt => {:day => \'Day\', :month => \'Month\', :year => \'Year\'},          


        
6条回答
  •  青春惊慌失措
    2021-01-02 09:46

    I was facing the same problem. I just added attr_accessible for that attribute and it works fine.

    Hope it helps.

提交回复
热议问题