Your typical Rails log entry would look something like this:
Started GET "/login" for 127.0.0.1 at Thu Sep 27 18:59:08 -0500 2012 Processing by PublicController#index as HTML (40.9ms) SELECT COUNT(*) FROM "studies" (49.6ms) SELECT COUNT(DISTINCT "activities"."whodiddit") FROM "activities" (35.3ms) SELECT COUNT(*) FROM "involvements"
I assume your hundreds of SQL queries are happening here?
Rendered partials/_faq.haml (6.1ms) Rendered public/index.html.haml within layouts/public (114.3ms) Completed 200 OK in 595ms (Views: 276.7ms | ActiveRecord: 151.6ms)
So, at the top, you got the HTTP verb GET and the route ( /login in my example) and the node from which it came. After that, Rails tells you which controller + action is starting.
Note. If you see a line starting with Rendered... that you render. Any SQL queries that appear after rendering indicate that SQL queries are triggered in your view (for example, outside your controller). Just something to think about. Depending on what code you are invoking, the actual lines that run your SQL queries may be buried in helpers, models, or elsewhere that invokes the view code.
Processing by PublicController
The as HTML bit at the end tells you in what format the request was requested, and therefore what kind / format is likely to be used in the response.
So, what this tells you basically is that SQL queries were called either as part of the index action in the PublicController , or one of the views that this controller displays as a result of this action is triggered.