Marnen Laibow-Koser wrote: > Anyway, why are you building a query string like that? That's > ActiveRecord's job -- just pass it a hash of attributes. As it stands > right now, you're essentially not using ActiveRecord.
I'm still getting used to ActiveRecord outside of Rails and having a hard time coming up with the right hash, for now making my own query seemed the best option since I can understand it. When I can find a good tutorial that describes how to build custom hashes I'll make the switch. Thanks for the help, I didn't realize that about the variable interpolation. -- 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 -~----------~----~----~----~------~----~------~--~---

