On Fri, Oct 10, 2008 at 09:26:26AM +0100, Andrew Neil wrote:
> I don't have time to offer any more advice just now, but here is a tip: when
> your finding your way around someone else's code, the debugger is your
> friend. Check out this article:
>
>     http://guides.rails.info/debugging/debugging_rails_applications.html
>
> In short:
>
>     sudo gem install ruby-debug
>
> Add this line to your /config/environments/development.rb:
>
>     require 'ruby-debug'
>
> Then insert the line:
>
>     debugger
>
> at the top of the process action. Restart your development environment.
> Submit the form, and the code should stop at the break point. You can step
> through the rest of the action line by line, enter 'irb' and examine all the
> variables in that context, etc.

Drew - Thanks for the tip. I've wanted to figure out how to debug some
things in rails, but the pain was too small to motivate me to find what
I needed. You've done it for me. Thanks!

Bill
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to