Reputation: 6608
I would like to know is there any way I could debug and understand the Internal working of Rails ActiveRecord , ActiveController , Request and Response working , dispatching etc.
Upvotes: 2
Views: 299
Reputation: 52316
I find surprisingly few reasons to use any kind of IDE with Ruby, but debugging into the Rails framework, either out of curiosity, a need to fix some misunderstanding on my part or to identify a bug (I only found one and it was tiny) is the main one.
There's good list here: https://stackoverflow.com/questions/826164/a-definitive-list-of-ides-for-ruby-on-rails ; personally I find NetBeans adequate. And the price is right.
Upvotes: 2
Reputation: 136603
Wouldn't getting a book like AGWDR and the Rails API Docs be a shorter route than a step-through debugger ?
Update: I was going to say that I've never seen a step-thru debugger for ruby.. but Mark already posted one :) Rubyists at work. However it still feels like a painful approach to learning.
Upvotes: 0
Reputation: 85551
I'd say the best way is to read the code and use a debugger like ruby-debug. Checkout this tutorial on ruby-debug. One last resource: Jamis Buck has a pretty nice series on his blog about Rails under the hood.
Upvotes: 2