Skip to content

Commit 7a0336d

Browse files
committed
Use .new instead of #build
1 parent 456174b commit 7a0336d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/organizations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def show
2424
end
2525

2626
def create
27-
@organization = @organizations.build organization_params
27+
@organization = Organization.new(organization_params)
2828
if @organization.save
2929
redirect_to @organization, status: :created
3030
else

0 commit comments

Comments
 (0)