Please help me to identify the issue. I followed the tutorial on creating a form in a view inside Rails app.
<%= form_for(@new_post) do |f| %> <%= t.text_field :comment, :placeholder => "Share your thoughts" %> <%= f.submit "Post", :class => "btn" %> <% end %>
but it gives me an error
Please tell me what is wrong with my code, where is the error, thanks.