The problemic model: http://pastie.caboo.se/196775
>> u.profile.observable_artists_as_string
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column
''users.user_id'' in''where clause'': SELECT
observations.* FROM
observations INNER JOIN users ON obervations.user_id = users.id
WHERE ((users.user_id = 1) AND ((observable_typ=''Artist'')))
The problem
users.user_id should be observations.user_id
Is it a bug in Rails core?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---