Go to your application_controler.rb and add this method


def xxx function
raise function .inspect
end

save the file and restart the server if required, now anywhere in your controller you can do this


xxx User.all

or you can do


xxx params

ofcourse you can name this method what ever you want, but I use xxx because its quick to type and I won’t override other method “no descent application would have such a method called xxx” :)

One Response to “quick tip for rails debuggers”

  1. хостинг Says:

    waiting for next post

Leave a Reply