Rails 3 simple form error : couldn't parse YAML

后端 未结 2 590
遇见更好的自我
遇见更好的自我 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:40

    You're using a namespaced model - you must reference the namespace in your form path.

    Try this:

    <%= simple_form_for [:admin, @konkurrancer] do |f| %>
    
    0 讨论(0)
  • 2021-01-26 11:42

    try

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

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

    0 讨论(0)
提交回复
热议问题