Permalink
Browse files

Update the install generator to add the new location responder commen…

…ted out
  • Loading branch information...
1 parent c409d87 commit 977ef87ca20a3875cda1ee5ed1d934bfd13fc7da @carlosantoniodasilva carlosantoniodasilva committed May 27, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/generators/responders/install_generator.rb
@@ -11,9 +11,13 @@ class ApplicationResponder < ActionController::Responder
include Responders::FlashResponder
include Responders::HttpCacheResponder
- # Uncomment this responder if you want your resources to redirect to the collection
- # path (index action) instead of the resource path for POST/PUT/DELETE requests.
+ # Redirects resources to the collection path (index action) instead
+ # of the resource path (show action) for POST/PUT/DELETE requests.
# include Responders::CollectionResponder
+
+ # Allows to use a callable object as the redirect location with respond_with,
+ # eg a route that requires persisted objects when the validation may fail.
+ # include Responders::LocationResponder
end
RUBY
end

0 comments on commit 977ef87

Please sign in to comment.