NUBIC/ncs_navigator_core — pull request #210 by georgediaz88 (2013-06-10 23:43:28+00:00)
Title: Debugging updates

To alleviate troubleshooting, I've introduced the gem 'pry' (for development) to this project. I find myself using it daily to debug methods and requests. For instance, you can type:

binding.pry

in an action and when making a request, it will create a breakpoint where you've added that line and you can inspect anything at that moment in time (ie. params, variables etc). This is viewable in your terminal and typing 'exit' will exit and continue with the request. Just remember, to take the binding.pry line out of your code when pushing.

Also added was better errors which gives a nice UI experience for errors. Used by the Rails community, this provides the same stacktrace with a better look and feel in development. You can also access variables etc wherever the page broke because it uses REPL which gives you an interactive session w/the error.

I've also cleaned up the verbose messages from .rvmrc by updating it to the new standards.

Useful links:
Pry =>
https://github.com/pry/pry
http://railscasts.com/episodes/280-pry-with-rails
Better Errors =>
https://github.com/charliesome/better_errors
http://railscasts.com/episodes/402-better-errors-railspanel