Skip to content

Instantly share code, notes, and snippets.

@jagmitg
Created May 1, 2012 23:26
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 jagmitg/2572338 to your computer and use it in GitHub Desktop.
Save jagmitg/2572338 to your computer and use it in GitHub Desktop.
Hi,
In regards to our conversion on gtalk, im having some issues with a bad query leak on the show files. Im trying to use https://gist.github.com/2572312 this method before to combine some elements together with group_by. But there not even working for days which is working fine there.
The file above works perfectly well and thats what i would like to achieve, however, its not working on the show/, this is the code for show.
<h1>Listing shows</h1>
<ul>
<% @shows.each do |show| %>
<li><%= show.screening.film.title %> @ <%= show.screening.cinema.name %></li>
<li><%= show.day %></li>
<% end %>
</ul>
What this is doing is repeating the film title over and over again and the cinema name over and over again with a different date and time each time. Is it possible to combine film and cinema name together and have 5 different timings displayed with commas?
Thanks again for the help.
Kind Regards,
Jag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment