Soc/app/views/microposts/_form.html.erb

10 lines
196 B
Plaintext

<%= form_with model: @micropost, id: "micropost_form" do |f| %>
<h2><%= title %></h2>
<%= f.rich_text_area :content %>
<%= text_field_tag :tags %>
<%= f.submit button_text %>
<% end %>