rspec nested ( has many resource ) no route found error
- by Surya
My calendar resource is a nested resource under profile
map.resources :profiles, :has_many=>[:calendar]
I am trying to write a rspec spec for calendarcontroller
it "should use supplied date" do
get :show , :month = '09' , :year = '2010'
end
But i get an error stating
No route matches {:month="09",
:year="2010",
:controller="calendar",
:action="show"}
Any idea how i could get around this ?