document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <h1>Editar Post</h1>
  2.  
  3. <%= form_for @post do |f| %>
  4.     <% if @post.errors.any? %>
  5.         <h2>Errores:</h2>  
  6.         <ul>
  7.             <% @post.errors.full_messages.each do |message| %>
  8.                 <li><%= message %></li>
  9.             <% end %>
  10.         </ul>
  11.     <% end %>
  12. <p>
  13.     <%= f.label :title %><br />
  14.     <%= f.text_field :title %><br />
  15. <br />
  16.     <%= f.label :content %><br />
  17.     <%= f.text_area :content %>
  18. </p>
  19. <p>
  20.     <%= f.submit "Actualizar Post" %>
  21. </p>
  22. <% end %>
');