Skip to content

Cool Stuff We Learned

Venetya Evans edited this page Jul 26, 2017 · 9 revisions

Gems for debugging:

  • byebug
  • pry - a repl gem used for troubleshooting http calls: place this code in the action block in your controller: binding.pry it creates a breakpoint where local variables can be evaluated. Many more uses. Learn more here: http://pryrepl.org/

Check routes from app url:

http://localhost:3000/rails/info/routes

Conditional viewing of debug params in UI output. Add this to the bottom of your view.

<%= debug(params) if Rails.env.development? %>

Clone this wiki locally