Displaying 1 result from an estimated 1 matches for "fd47ae8903e9f82697145c71e7b3d43d".
2008 Feb 09
0
MVC interplay to query multiple models
...ActiveRecord::Base
belongs_to :login
def report
Call.find(:all, :include => [:login, :login])
end
end
thufir@arrakis ~/goodfellow-tool $
And mongrel reports:
Processing CallsController#show (for 127.0.0.1 at 2008-02-08 22:58:53)
[GET]
Session ID: fd47ae8903e9f82697145c71e7b3d43d
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"calls"}
Call Load (0.001115) SELECT * FROM calls WHERE (calls."id" = 1)
Rendering within layouts/calls
Rendering calls/show
Call Load Including Associati...