Created
April 30, 2012 03:45
-
-
Save jagmitg/2555260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined local variable or method `shows' for #<#<Class:0x007f8f62ca7828>:0x007f8f62ca3b10> | |
Extracted source (around line #10): | |
7: | |
8: <li><%= show.day %></li> | |
9: | |
10: <% shows.group_by(&:day).each do |day, shows| %> | |
11: <p><%= day %></p> | |
12: <ul style="width:320px;"> | |
13: <% shows.each_with_index do |show, i| %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Listing shows</h1> | |
<ul> | |
<% @shows.each do |show| %> | |
<li><%= show.screening.film.title %> @ <%= show.screening.cinema.name %></li> | |
<li><%= show.day %></li> | |
<% shows.group_by(&:day).each do |day, shows| %> | |
<p><%= day %></p> | |
<ul style="width:320px;"> | |
<% shows.each_with_index do |show, i| %> | |
<li style="display: inline-block;"> | |
<%= ?| if i > 0 %> | |
<%= link_to show.showed_at, show %> | |
</li> | |
<% end %> | |
</ul> | |
<% end %> | |
<% end %> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment