
Untitled
By: a guest on
May 16th, 2012 | syntax:
None | size: 1.30 KB | hits: 14 | expires: Never
<%= semantic_form_for(@company) do |f| %>
<% if @company.errors.any? %>
<div id="error_explanation">
<p><%= pluralize(@company.errors.count, "error") %> prohibited this company from being saved.</p>
<ul>
<% @company.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% f.inputs do %>
<%= f.input :name, :label => 'Name' %>
<%= f.input :facebook, :label => 'Facebook' %>
<%= f.input :website, :label => 'Website' %>
<%= f.input :wikipedia, :label => 'Wikipedia' %>
<%= f.input :twitter, :label => 'Twitter' %>
<%= f.input :headquarters_city, :label => 'Headquarters city' %>
<%= f.input :headquarters_state, :label => 'Headquarters state' %>
<%= f.input :founding_city, :label => 'Founding city' %>
<%= f.input :founding_state, :label => 'Founding state' %>
<%= f.input :year_founded, :label => 'Year founded' %>
<%= f.input :ownership, :label => 'Ownership' %>
<%= f.input :slug, :label => 'Slug' %>
<%= f.input :manufacturer, :label => 'Manufacturer' %>
<%= f.input :dba, :label => 'Dba' %>
<%= f.input :public, :label => 'Public' %>
<%= f.input :founder, :label => 'Founder' %>
<% end %>
<% end %>
<% end %>