Ruby on rails course, lab Threadly, error in syntax
Hello, community.
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.

do |f|


That doesn’t seem right.

got it f instead of t, thanks. shame :slight_smile:

1 Like