On 22 December 2011 10:55, amvis <[email protected]> wrote:
> can i use  like this in ruby on rails
>
>  Loyalty.find_by_sql("SELECT COUNT(id) FROM loyalties")

What happened when you tried it?
Run the command in the rails console to see what the result is.

Colin

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to