ruby-on-railssimple-form-for

NoMethodError simple_form_for in ruby on rails


<%= simple_form_for @post do |f| %>
  <%= f.label :title %>
  <%=f.text_field :title%>
  <%= f.label :phone %>
  <%=f.text_field :phone%>
  <%= f.label :description %>
  <%=f.text_field :description%>
  <%= f.submit%>
<% end %>

enter image description here how i can solve this


Solution

  • Make sure you've done the following:

    Then attempt this action again.