Topic: Nested resource routes throwing a No Route Matches error

I have Categories has_many awards

Routes are setup as:

 resources :categories do
    resources :awards do
        resources :recommendations 
    end
  end 

this is as straight forward as it comes as best I can tell.  Running Rake Routes returns the following route

new_category_award GET    /categories/:category_id/awards/new(.:format)  {:action=>"new", :controller=>"awards"}

In my view I am using a link to as follows:

<%= link_to "New Store Award", new_category_award_path(@stores), :method => :get ,:class => "btn" %>

@stores is setting the category_id for me so my url on the link to looks like: http://localhost:3000/categories/1/awards/new

When I click the link it throws the following error: No route matches {:action=>"show", :controller=>"awards"}

I don't see why its trying to access the show view of the awards controller, I specifically going after the new action.  I am also not passing an award id...

any ideas?

Re: Nested resource routes throwing a No Route Matches error

I am an idiot.  The issue wasn't in my link_to it was in the view I was showing after clicking the link.  Always double check the view that the error is being thrown from.