SHARE
TWEET

_form.html.erb

a guest Jun 28th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%= form_for(@article) do |f| %>
  2.   <ul>
  3.   <% @article.errors.full_messages.each do |error| %>
  4.     <li><%= error %></li>
  5.   <% end %>
  6.   </ul>
  7.   <p>
  8.     <%= f.label :title %><br />
  9.     <%= f.text_field :title %>
  10.   </p>
  11.   <p>
  12.     <%= f.label :body %><br />
  13.     <%= f.text_area :body %>
  14.   </p>
  15.   <p>
  16.     <%= f.submit %>
  17.   </p>
  18.   <p>
  19.   <%= f.label :tag_list %><br />
  20.   <%= f.text_field :tag_list %>
  21. </p>
  22. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top