Displaying 2 results from an estimated 2 matches for "inspect_sql".
Did you mean:
insert_sql
2008 Dec 11
2
serialize array finder
Hello,
Not sure if this is even possible/practical but I''d like to serialize an
array to a string field like this and then be able to match against it.
User.find(:all, :conditions => ["interests in
(?)",current_user.interests)
Am I better of not denormalizing? How would this be done with ordinary
A/R relationships because I''m not looking for an exact match,
2008 Sep 06
6
Active record question
I''m not quite sure how to get at this data using Actrive record.. I''m trying to get all the appointments made for a particular project. I''m using four models, Projects, Tasks, Resources and Appointments.
The SQL gets me what I''m looking for but how do I do it using Active Record?
Select a.* from appointments a
join resources r on r.id = a.resource_id
join