Skip to content

Instantly share code, notes, and snippets.

@kexline4710
Created April 22, 2014 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kexline4710/11191818 to your computer and use it in GitHub Desktop.
Save kexline4710/11191818 to your computer and use it in GitHub Desktop.
%span.btn-group.add-item-expanded
= link_to 'View', account_select_event_item_path(item.account, item.select_event, item), method: :get, :class => "btn fooda-white"
= form_for [:checkout, ], url: checkout_items_path, method: :post do |f|
= f.hidden_field :parent_id, value: @menu_page.select_event.id
= f.hidden_field :parent_type, value: 'SelectEvent'
= f.hidden_field :selection, value: item.inventory_item
= f.submit 'Buy Now', :class => "btn fooda-blue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment