[rspec-users] nested route not receiving :id parameter within controller spec

Patrick J. Collins patrick at collinatorstudios.com
Tue Feb 7 00:05:32 EST 2012

I tried that and got the same result, plus rake routes says:

  share_post POST /posts/:id/share(.:format) {:action=>"share", :controller=>"posts"}


  share_post POST /posts/:post_id/share(.:format) {:action=>"share", :controller=>"posts"}

So I don't see how that can be the case...

Patrick J. Collins

More information about the rspec-users mailing list