Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% packages = {} %>
- <% @packages.each_with_index do |package, index| %>
- <% packages["package_#{package.id}"] = {"position" => index, "color" => "0x#{package_seating_color}", "sold_out" => package.sold_out, "price" => package.lowest_price, "range" => "price_1", "name" => package.name, "boxes", package.seating_boxes, "sections" => package.seating_list, "description" => truncate(package.seating_description, :length => 230)} %>
- <% end %>
- <% prices = {} %>
- <%= raw({ "packages" => packages, "prices" => prices }.to_json) %>
Add Comment
Please, Sign In to add comment