Permalink
Browse files

doc patch

  • Loading branch information...
1 parent 18ab33c commit 1967db492a66cd448513f05a3ec30a6d89f55a97 @croaky croaky committed Sep 30, 2008
Showing with 6 additions and 6 deletions.
  1. +6 −6 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]

0 comments on commit 1967db4

Please sign in to comment.