title: NoMethodError in controller#new - undefined method
body: <p>I'm getting a <code>NoMethodError</code> in the <code>new</code> action of my <code>business_controller</code>. </p>
  
  <p>It seems to be acessing the <code>@business</code> object for a form in my view and the error occurs then:</p>
  
  <pre><code>undefined method `businesses_path' for
  </code></pre>
  
  <p>Here is my new method:</p>
  
  <pre><code>def new
    if Business.where(:user_id =&gt; current_user.id).first.blank?
      @business = Business.new
    else
      redirect_to user_businesses_path(current_user.id)
    end
  end
  </code></pre>
  
  <p>My routes are:</p>
  
  <pre><code>  resources :users do
      resources :businesses
        member do
          get 'account'
          post 'payment'
          put 'update_password'
          get 'membership'
        end
    end
  </code></pre>
  
  <p><strong>mind.blank's suggested changes</strong></p>
  
  <p><code>before_filter :check_if_user_has_business, :only =&gt; :index</code></p>
  
  <pre><code>   def new
        @business = Business.new
     end
  
    private
    def check_if_user_has_business
      redirect_to new_user_business_path(current_user) unless current_user.business
    end
  </code></pre>