Skip to content

Commit

Permalink
Remove more references to respond_with
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Aug 17, 2014
1 parent 2b0c602 commit 57f5b00
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion actionpack/test/fixtures/respond_with/edit.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion actionpack/test/fixtures/respond_with/new.html.erb

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 6 additions & 1 deletion guides/source/caching_with_rails.md
Expand Up @@ -353,7 +353,12 @@ Instead of an options hash, you can also simply pass in a model, Rails will use
class ProductsController < ApplicationController
def show
@product = Product.find(params[:id])
respond_with(@product) if stale?(@product)

if stale?(@product)
respond_to do |wants|
# ... normal response processing
end
end
end
end
```
Expand Down
2 changes: 1 addition & 1 deletion guides/source/contributing_to_ruby_on_rails.md
Expand Up @@ -397,7 +397,7 @@ inside, just indent it with 4 spaces:
class ArticlesController
def index
respond_with Article.limit(10)
render json: Article.limit(10)
end
end
Expand Down

0 comments on commit 57f5b00

Please sign in to comment.