Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 1.30 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <%= semantic_form_for(@company) do |f| %>
  2.   <% if @company.errors.any? %>
  3.     <div id="error_explanation">
  4.       <p><%= pluralize(@company.errors.count, "error") %> prohibited this company from being saved.</p>
  5.       <ul>
  6.         <% @company.errors.full_messages.each do |msg| %>
  7.           <li><%= msg %></li>
  8.         <% end %>
  9.       </ul>
  10.     </div>
  11.     <% f.inputs do %>
  12.       <%= f.input :name, :label => 'Name' %>
  13.       <%= f.input :facebook, :label => 'Facebook' %>
  14.       <%= f.input :website, :label => 'Website' %>
  15.       <%= f.input :wikipedia, :label => 'Wikipedia' %>
  16.       <%= f.input :twitter, :label => 'Twitter' %>
  17.       <%= f.input :headquarters_city, :label => 'Headquarters city' %>
  18.       <%= f.input :headquarters_state, :label => 'Headquarters state' %>
  19.       <%= f.input :founding_city, :label => 'Founding city' %>
  20.       <%= f.input :founding_state, :label => 'Founding state' %>
  21.       <%= f.input :year_founded, :label => 'Year founded' %>
  22.       <%= f.input :ownership, :label => 'Ownership' %>
  23.       <%= f.input :slug, :label => 'Slug' %>
  24.       <%= f.input :manufacturer, :label => 'Manufacturer' %>
  25.       <%= f.input :dba, :label => 'Dba' %>
  26.       <%= f.input :public, :label => 'Public' %>
  27.       <%= f.input :founder, :label => 'Founder' %>
  28.     <% end %>
  29.   <% end %>
  30. <% end %>