Count is broken in Rails 2.3.2
After upgrading to Rails 2.3.2 I started getting this error:
Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*)
It turns out that the 'count' method is broken for 'has_many through association collection with named scope'. Here's a link to the bug report:
http://rails.lighthouseapp.com/projects/8994/tickets/2189
-
joost
Justin Ball is a software consultant and entrepreneur with a passion for Ruby. He evolved from a C++ and .Net monkey into a python programmer and finally found Ruby. In the rare moments when he isn't writing code, talking about code or measuring his code productivity in profanity per hour, you can find him on his bike in the mountains or on the roads surrounding Cache Valley. 









