I have a Rails question.
How do I get a controller action's name inside the controller action?
For example, instead of
def create
logger.info("create")
end
I want to write something like
def create
logger.info(this_def_name)
end
What is a way to get this_def_name
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…