[rspec-users] Can't access actions of a singular nested resource

Pat Maddox pergesu at gmail.com
Sun Aug 3 11:44:06 EDT 2008

On Fri, Aug 1, 2008 at 4:41 AM, Bastien <bastien.vaucher at gmail.com> wrote:
> Thanks for your help Aslak, but I still didn't manage to make it pass
>>> get :show, :id=>"34"
> it sends me this error then : No route matches
> {:action=>"show", :controller=>"surveys/report", :id=>"34"}

What's your controller's name?  In Rails, all resource controller
names are plural, even singleton resources.  So your controller should
be Surveys::ReportsController.


More information about the rspec-users mailing list