Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created January 17, 2014 19:30
Show Gist options
  • Save benphelps/8479840 to your computer and use it in GitHub Desktop.
Save benphelps/8479840 to your computer and use it in GitHub Desktop.
<%= form_for(@spek) do |f| %>
<div class="field">
<%= f.label :klass_id %><br>
<%= f.collection_select :klass_id, Klass.order(:name), :id, :name, include_blank: true %>
</div>
<div class="field">
<%= f.label :name %><br>
<%= f.text_field :name %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
= form_for @spek, :html => {:class => 'nice custom'} do |f|
.row
.large-12.columns
= f.label :klass_id, 'Class'
= f.collection_select :klass_id, Klass.order(:name), :id, :name, prompt: 'Select a Class'
.row
.large-12.columns
= f.text_field :name
.row
.large-12.columns
= f.submit 'Create Specialization'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment