I have the following expression:
which seems to work fine. But when I add an orders, like this:
it breaks with the following error:
ActiveRecord::ConfigurationError: Association named 'user_runs'
was not found; perhaps you misspelled it?
Any ideas why?
The model looks like this:
class Clock < ActiveRecord::Base
class Run < ActiveRecord::Base
has_many :users, :through => :user_runs
class UserRun < ActiveRecord::Base