Undefined method `merge' for '####':string <%= form_for %> helper

后端 未结 1 898
难免孤独
难免孤独 2021-02-13 14:04

I have a form, that when POSTed, renders another form. What I would like to do is to pass the parameters from the first form, into certain hidden fields of the second form.

相关标签:
1条回答
  • 2021-02-13 14:38

    second parameter in hidden_field should be an option hash, not a value

    <%= f.hidden_field :original_number, :value => params[:original_number] %>
    
    0 讨论(0)
提交回复
热议问题