quick tip for rails debuggers
May 4th, 2010
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”
July 26th, 2010 at 11:27 pm
waiting for next post