Skip to content

Instantly share code, notes, and snippets.

@nigelr
Created June 17, 2013 23:56
Show Gist options
  • Save nigelr/5801561 to your computer and use it in GitHub Desktop.
Save nigelr/5801561 to your computer and use it in GitHub Desktop.
haml
new.html.haml
%h1 New vendor
= render 'form'
= link_to 'Cancel', vendors_path, id: :cancel_new_vendor_link
---------------------
_form.html.haml
= form_for @vendor, :html => { :class => 'form-horizontal' } do |f|
.form-actions
= f.submit nil, :class => 'btn btn'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment