|
|
|
|
|
by collint
5757 days ago
|
|
Not really, in Rails, you might have this controller code: @things = Thing.where(:it => "good") And this view code: <% for thing in @things %> <%= thing.name %> <% end %> But the SQL query doesn't fire in the controller. It gets kicked in the view when you "for x in y" Concerns still wonderfully separated. |
|
In only the trivial cases can you defer the actual SQL queries from being performed before the view is rendered.