title: Rails 4: Get Controller class from Model class
body: <p>Is there any easy way to get Controller class name from Model class?.
  Example:</p>
  
  <pre><code>Invoice =&gt; InvoicesController
  </code></pre>
  
  <p>Tried <a href="http://api.rubyonrails.org/classes/String.html#method-i-tableize" rel="nofollow">tabalize</a> but it returns "invoices"</p>
  
  <pre><code>Invoice.to_s.tabalize =&gt; "invoices"
  </code></pre>