New nested routes not correct for show and create
Reported by BJ Clark | March 3rd, 2008 @ 02:06 AM
These specs are failing for me:
Not sure if the problem is with how the routes are being generated or if it's a problem with match or what the deal is.
Comments and changes to this ticket
-
Shay Arnett March 3rd, 2008 @ 05:34 AM
- → State changed from new to open
It works...
specs should read
it "should match a get to /blogposts/1/comments/1 to the comments controller and show action" do route_to('/blogposts/1/comments/1', :method => :get).should have_route(:controller => 'comments', :action => 'show', :id => '1', :blogpost_id => '1') end it "should match a post to /blogposts/1/comments to the comments controller and create action" do route_to('/blogposts/1/comments', :method => :post).should have_route(:controller => 'comments', :action => 'create', :id => nil, :blogpost_id => '1') end -
Shay Arnett March 3rd, 2008 @ 05:36 AM
- → State changed from open to invalid
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
