Permalink
Browse files

Merge pull request #7 from conzett/master

Small fix for scaffold generator
  • Loading branch information...
2 parents 2f0f434 + 77d3c81 commit b94eb524b9019590b78dbdb333607155e1009005 @amatsuda committed Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/scaffold_controller/templates/controller.rb
@@ -83,7 +83,7 @@ def destroy
@<%= singular_name %>.destroy
respond_to do |format|
- format.html { redirect_to <%= nested_parent_name %>_<%= index_helper %>_url(<%= nested_parent_name %>) }
+ format.html { redirect_to <%= nested_parent_name %>_<%= index_helper %>_url(@<%= nested_parent_name %>) }
format.json { head :ok }
end
end

0 comments on commit b94eb52

Please sign in to comment.