Skip to content

Instantly share code, notes, and snippets.

@mdarby
Forked from kexline4710/order_item.haml
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdarby/11192045 to your computer and use it in GitHub Desktop.
Save mdarby/11192045 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 :info, url: checkout_items_path do |f|
= f.hidden_field :parent_id, value: @menu_page.select_event.id
= f.hidden_field :parent_type, value: 'SelectEvent'
= f.hidden_field :item_id, value: item.inventory_item_id
= f.hidden_field :item_type, value: "InventoryItem"
= f.text_field :instructions
= f.text_field :options
= 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