No, this is not a real Sinatra error :).
This is the personal homepage of Elad Meidar, a web developer and an entrepreneur specializing in Ruby on Rails. I hang around in Israel, and i am currently having the best time of my life over at Fiverr.com
I am a proud member of RailsBridge, Helping new Rails developers get into our world and also contributed a few Patches to the Ruby on Rails core.
Many times when using a belongs_to relation, we encounter the need to size up that association, we can use 2 methods which are created for us, size and (association_pluralization)count.
so if SuperHero has_many :super_powers than:
they will both issue that same SQL statement at this point
which basically preforms a SELECT * statement, we don’t like it :)
the :counter_cache parameter for the belongs_to macro, indicates the use of a (association_pluralization)count named column which will be incremented and decremented according to the use of the associative array, this can and does save a lot of time and DB – APP – DB roundup’s.
You're seeing this error because I think it is funny.