Hi, I usually always dea with arrays this is the first time I have to
deal with a regular variable.. so I have in my method:
def online
@online = Status.count_by_sql "SELECT COUNT(*) FROM status WHERE
status = ''online'';"
end
and in my layout view I have
<%= @online %>
and nothing comes up... :-(
What im doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---