title: Route for a controller without model in rails 3
body: <p>I have a controller named <code>BaseController</code> that inherits from <code>ApplicationController</code> whitout a model associated but it has <code>ping</code> method that just respond with a message to inform that everything is OK. </p>
  
  <p>I'm trying to call the action ping through the BaseController setting this in my routes.rb file:</p>
  
  <pre><code>namespace :api, defaults: { format: 'json' } do   
    match '/ping' =&gt; 'base#ping' 
  end
  </code></pre>
  
  <p>But it always give me an NameError <code>uninitialized constant Base</code>. I suppose it's trying to find a model called Base which doesn't exist so, I don't know how to set to the correct route to my controller.</p>
  
  <p>The content of my BaseController is the following:</p>
  
  <pre><code>class Api::BaseController &lt; ApplicationController
     load_and_authorize_resource
     respond_to :json
  
     def ping
        respond_with({ :status =&gt; 'OK' })
     end
  end
  </code></pre>
  
  <p>As extra information: <code>BaseController</code> is just a parent controller for other controllers to inherit. The others are resourceful controllers and have models associated</p>
  
  <p>Thanks.</p>