hi..
I have a question concerning the method find_by_sql()..

i wonna to make a query like this:
"SELECT category, COUNT(*) FROM tables1"
but cannot return anything..
I want to know the correct procedure for the output in view..
In my trials I've found this:

######################################################
 NoMethodError in Blog#index

Showing blog/index.html.erb where line # raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.title
######################################################

please help me..i'm a newbies :D

thanks
bye
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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