I have an object (@cnt).
Now when I am calling “@cnt.inspect” on object it gives me output as
Now in aboove output the number between double quotes (3) which is of my
interest & I want to display it. How to do that?
Actually this is my method:-
class Tagging < ActiveRecord::Base
"SELECT count(*) as cntnew FROM taggings " +
“WHERE taggings.tag_id = (SELECT tags.id from tags where
Now this is code in my view:-
Now how to get the value of count which is returned by method with SQL
PLease help me.
Thanx in advance.