Skip to content

Instantly share code, notes, and snippets.

@mycargus
Created March 16, 2017 16:05
Show Gist options
  • Save mycargus/51f046fe91ef0ee06a4975bdede94850 to your computer and use it in GitHub Desktop.
Save mycargus/51f046fe91ef0ee06a4975bdede94850 to your computer and use it in GitHub Desktop.
example @user form for step #3
= form_for @user do |f|
.row
.small-12.columns
.field
= f.text_field :name
.field
= f.text_field :company
.field
= f.text_field :email
.field
= f.text_field :phone
.field
= f.text_field :street
.field
= f.text_field :city
.field
= f.collection_select :us_state_id, @states, :id, :abbreviation, { include_blank: '', label: false }
.field
= f.text_field :zipcode
%br
.row.text-right
.small-12.columns.actions
= f.submit 'Submit'
%br
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment