title: Rails - controller action name to string
body: <p>I have a Rails question.</p>
  
  <p>How do I get a controller action's name inside the controller action?</p>
  
  <p>For example, instead of</p>
  
  <pre><code>def create
    logger.info("create")
  end
  </code></pre>
  
  <p>I want to write something like</p>
  
  <pre><code>def create
    logger.info(this_def_name)
  end
  </code></pre>
  
  <p>What is a way to get <code>this_def_name</code>?</p>