Fix failure to use strong params in campaigns_controller.rb
This commit is contained in:
parent
aa83977fed
commit
2ea9cf0da3
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class CampaignsController < ApplicationController
|
|||
end
|
||||
|
||||
def create
|
||||
@campaign = CreateCampaign.create(params, current_nonprofit)
|
||||
@campaign = CreateCampaign.create(campaign_params, current_nonprofit)
|
||||
if (@campaign.errors.empty?)
|
||||
render 'campaigns/create', campaign: @campaign
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue