Advertisement
Guest User

Untitled

a guest
Mar 13th, 2011
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.79 KB | None | 0 0
  1. <%= form_for(@panel_category, :url => "/panel/categories") do |f| %>
  2.   <% if @panel_category.errors.any? %>
  3.     <div id="error_explanation">
  4.       <h2><%= pluralize(@panel_category.errors.count, "error") %> prohibited this panel_category from being saved:</h2>
  5.  
  6.       <ul>
  7.       <% @panel_category.errors.full_messages.each do |msg| %>
  8.         <li><%= msg %></li>
  9.       <% end %>
  10.       </ul>
  11.     </div>
  12.   <% end %>
  13.  
  14.   <div class="field">
  15.     <%= f.label :title %><br />
  16.     <%= f.text_field :title %>
  17.   </div>
  18.   <div class="field">
  19.     <%= f.label :description %><br />
  20.     <%= f.text_area :description %>
  21.   </div>
  22.   <div class="field">
  23.     <%= f.label :photo_id %><br />
  24.     <%= f.text_field :photo_id %>
  25.   </div>
  26.   <div class="actions">
  27.     <%= f.submit %>
  28.   </div>
  29. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement