Skip to content

Commit

Permalink
doc patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Sep 30, 2008
1 parent 18ab33c commit 1967db4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/shoulda/controller/macros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1967db4

Please sign in to comment.