Best utility Rails gem to help you code / debug

Go To StackoverFlow.com

2

What gems do you use for helping you be more productive or debug more easily while coding in Rails?


Some gems are specific to a task, and you find them easily when you need to implement the feature. With this question, I'm looking for all the others, that you might not think to search for, but once you have heard of it, you install it on each new project.


Please keep one gem per reply, to help the votes sort them out.

2012-04-05 21:34
by Guillaume
At the very least this should be community wiki - Andrew Marshall 2012-04-05 21:38
@AndrewMarshall: How do I do that for a question - Guillaume 2012-04-05 21:44


2

For me one of the most useful Rails debug tool is pry. This is something like more feature rich IRB console (we have access to all models, etc) and debugger - we might set break-points, watch variables.

2012-04-05 21:40
by Piotr Kochański
Agree with you. But might be useful for readers if you explained what pry offers, and why you think it's one of the most useful - Guillaume 2012-04-05 21:46
@Guillaume - done. RailsCast would tell the rest - Piotr Kochański 2012-04-05 21:52


0

rails-footnotes: displays footnotes in your application for easy debugging, such as sessions, request parameters, cookies, filter chain, routes, queries, etc.
Even more, it contains links to open files directly in your editor including your backtrace lines.

http://github.com/josevalim/rails-footnotes

2012-04-05 21:37
by Guillaume


0

awesome_print: when in the Console, pretty prints Ruby objects in full color exposing their internal structure with proper indentation.

http://github.com/michaeldv/awesome_print

2012-04-05 21:39
by Guillaume


0

mailcatcher: catches email messages sent and display them in a web interface.

Run mailcatcher, set your favourite app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, then check out http://127.0.0.1:1080 to see the mail that's arrived so far.

No need to pollute your inbox and wait for each mail to jump around smtp servers before reaching you. Must have when you are coding without an internet connection.

http://mailcatcher.me/

2012-04-05 21:52
by Guillaume
Ads