I am using Ruby on Rails with the pry gem. When an error occurs during a rake task, I get a very nice stack trace. 

When however I do something in my rails console that triggers an exception, I only get to see the error message and the one line of code that triggered it (which most of the time is somewhere in the rails core).

Is there a way to enable these stack dumps in the console?