<%= form_for @post, html: { class: 'square' } do |f| %> <%= render 'shared/errors', messages: @post.errors.full_messages %> <%= f.hidden_field :topic_id %>
<%= f.label :topic %>
<%= namelink @post.topic %>
<%= f.label :text %> <%= f.text_area :text, rows: 15 %>
<%= f.submit 'Save Post' %>
<% end %>