Skip to content

Instantly share code, notes, and snippets.

@Solnse
Created November 7, 2011 09:43
Show Gist options
  • Save Solnse/1344563 to your computer and use it in GitHub Desktop.
Save Solnse/1344563 to your computer and use it in GitHub Desktop.
= render :partial => 'menu_header'
.menus
- @foods.each do |category, foods|
.category
= category.titleize
.menus
- foods.each do |foods|
- if foods.img_url?
.list_image
= link_to image_tag(foods.img_url, class: 'list_image'), asset_path(foods.img_url), target: 'new'
%h3= foods.name
.list_description
= sanitize(foods.description)
.price_line
%span.price= number_to_currency(foods.price)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment