title: Can we have 'routes' to controller's class methods?
body: <p>If '<strong>is_name_available</strong>' is a class method in my <strong>'registrations'</strong> controller, can we have a route for it in routes.rb ?</p>
  
  <p>If yes, what is the syntax ?</p>
  
  <p>In routes.rb, I currently have the following 
  (which is giving me an error - The action 'is_name_available' could not be found for RegistrationsController)</p>
  
  <pre><code>get 'is_name_available', :to =&gt; 'registrations#is_name_available'
  </code></pre>