SyntaxFix
Write A Post
Hire A Developer
Questions
This snippet works for Rails 3
class ReportsController < ApplicationController def summary logger.debug self.class.to_s + "." + self.action_name end end
will print
. . . ReportsController.summary . . .