Hello
I am trying to use my join table "showing" to get a list of movies
I was trying to use this code but it does not work.
@showing_list = Showing.find_sorted_showings("time")
@movie_list = @showing_list.movies <-- NoMethodError
Here is my Showing class
class Showing < ActiveRecord::Base
belongs_to :movie
def self.find_sorted_showings(order)
find(:all, :order => order)
end
end
How can I change my showing class to get the move_list from the showing_list without doing it manually?
Thank you