Skip to content

Commit

Permalink
fix inherited_resources error when redirecting to back
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcaliley committed Jun 9, 2011
1 parent 65b081a commit 6f2a1cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/favorites_controller.rb
Expand Up @@ -11,6 +11,11 @@ def create
end

def destroy
destroy!{:back}
def destroy
destroy! do |success, failure|
success.html{redirect_to :back}
failure.html{redirect_to :back}
end
end
end
end

0 comments on commit 6f2a1cf

Please sign in to comment.