Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Nuevo post</h1>
- <%= form_for @post do |f| %>
- <% if @post.errors.any? %>
- <h2>Errores:</h2>
- <ul>
- <% @post.errors.full_messages.each do |message| %>
- <li><%= message %></li>
- <% end %>
- </ul>
- <% end %>
- <p>
- <%= f.label :title %><br />
- <%= f.text_field :title %><br />
- <br />
- <%= f.label :content %><br />
- <%= f.text_area :content %>
- </p>
- <p>
- <%= f.submit "Agregar Nuevo Post" %>
- </p>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement