Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

strong params : email not whitelisted in prelaunch_controller #10

Open
louispinot opened this issue Jun 26, 2014 · 0 comments
Open

strong params : email not whitelisted in prelaunch_controller #10

louispinot opened this issue Jun 26, 2014 · 0 comments

Comments

@louispinot
Copy link

I changed the first lines of the Create method to the following and it worked fine after:

permit_params = params.require(:prelaunch_subscriber).permit("email")
@prelaunch_subscriber = PrelaunchSubscriber.new(permit_params)

Also, to whoever fixes the bug: you may consider changing the params to symbols instead of strings :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant