Skip to content
Browse files

Fixed double assignment on create

  • Loading branch information...
1 parent fdc8a85 commit 9dc1100f2c453679a26e949ba031b038ba04d0ac @sigmike sigmike committed May 21, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/generators/cancan/scaffold_controller/templates/controller.rb
View
2 lib/generators/cancan/scaffold_controller/templates/controller.rb
@@ -36,8 +36,6 @@ def edit
# POST <%= route_url %>
# POST <%= route_url %>.json
def create
- @<%= singular_table_name %>.attributes = params[:<%= singular_table_name %>]
-
respond_to do |format|
if @<%= orm_instance.save %>
format.html { redirect_to @<%= singular_table_name %>, notice: <%= "'#{human_name} was successfully created.'" %> }

0 comments on commit 9dc1100

Please sign in to comment.
Something went wrong with that request. Please try again.