Rails 3 simple form error : couldn't parse YAML

后端 未结 2 589
遇见更好的自我
遇见更好的自我 2021-01-26 11:12

My new.html.erb:

  

New konkurrancer

<%= simple_form_for [:admin, @konkurrancer] do |f| % <%= f.input :name %>
2条回答
  •  隐瞒了意图╮
    2021-01-26 11:42

    try

    <%= simple_form_for ['admin', @konkurrancer] do |f| %>
    

    It looks like you're in a name spaced model?

提交回复
热议问题