Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created April 6, 2014 12:43
Show Gist options
  • Save luckyruby/10005503 to your computer and use it in GitHub Desktop.
Save luckyruby/10005503 to your computer and use it in GitHub Desktop.
= form_for @preferred_vendor, url: (action_name == 'new' ? new_preferred_vendor_path : preferred_vendor_path), as: 'preferred_vendor', html: { autocomplete: 'off' }, remote: true do |f|
= f.error_messages
%p
= f.label :name
%br
= f.text_field :name
%p
= f.label :item_code
%br
= f.text_field :item_code
%p
= f.label :accounting_code
%br
= f.text_field :accounting_code
%p
= f.submit 'SAVE', class: 'button'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment