Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from conzett/master

Small fix for scaffold generator
  • Loading branch information...
commit b94eb524b9019590b78dbdb333607155e1009005 2 parents 2f0f434 + 77d3c81
@amatsuda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/generators/scaffold_controller/templates/controller.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.