Greg Hauptmann wrote:
> ok - I see I can do the following
> 
>    ActiveRecord::Base.connection.select_all('select * from categories')
> 
> and get a hash back
> 

How is that superior to:

    Category.find(:all)

Or, if you have conditions:

    Category.find(:all, :conditions => [:status = ?, my_status])


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

Reply via email to