Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

doc patch

  • Loading branch information...
commit 1967db492a66cd448513f05a3ec30a6d89f55a97 1 parent 18ab33c
@croaky croaky authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/shoulda/controller/macros.rb
View
12 lib/shoulda/controller/macros.rb
@@ -283,12 +283,12 @@ def should_render_a_form
# should_route :get, "/posts", :controller => :posts, :action => :index
# should_route :get, "/posts/new", :action => :new
# should_route :post, "/posts", :action => :create
- # should_route :get, "/posts/#{@post.id}", :action => :show, :id => @post.id
- # should_route :edit, "/posts/#{@post.id}", :action => :show, :id => @post.id
- # should_route :put, "/posts/#{@post.id}", :action => :update, :id => @post.id
- # should_route :delete, "/posts/#{@post.id}", :action => :destroy, :id => @post.id
- # should_route :get, "/users/#{@user.id}/posts/#{@post.id}",
- # :action => :show, :id => @post.id, :user_id => @user.id
+ # should_route :get, "/posts/1", :action => :show, :id => 1
+ # should_route :edit, "/posts/1", :action => :show, :id => 1
+ # should_route :put, "/posts/1", :action => :update, :id => 1
+ # should_route :delete, "/posts/1", :action => :destroy, :id => 1
+ # should_route :get, "/users/1/posts/1",
+ # :action => :show, :id => 1, :user_id => 1
#
def should_route(method, path, options)
unless options[:controller]
Please sign in to comment.
Something went wrong with that request. Please try again.