Skip to content

Instantly share code, notes, and snippets.

@adamstac
Forked from stevenbristol/gist:302100
Created February 12, 2010 00:15
Show Gist options
  • Save adamstac/302151 to your computer and use it in GitHub Desktop.
Save adamstac/302151 to your computer and use it in GitHub Desktop.
// Modified, cleaner Haml syntax.
// First link works, second does not.
// First link
%ul
%li.arrow= link_to "Search/Add Customer", new_customer_path
// Second link
- form_for :reservation do |form|
%ul
%li.arrow= link_to "Search/Add Customer", new_customer_path
%li= form.datetime_select :time
%li= "Party of: #{form.text_field :party_of}"
%li= "Notes: #{form.text_area :notes}"
%li= submit_tag "Save", :class => "submit whiteButton"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment