I added the following to mine application.rb
because I want to have control over all submitted parameters:
config.action_controller.action_on_unpermitted_parameters = :raise
That way, I see pretty quickly during development if I forget to allow a parameter or something like that.
But - now I get the following error when trying to update the user through the form:
found unpermitted parameters: utf8, _method, authenticity_token, commit, locale, id
Iβm a little sure how to proceed: indeed, these are parameters that I havenβt heard of before, and they, as I see, are automatically sent to Rails' form_for
.
I only need to take care of the parameters of my resources, for example. user[name]
, user[email]
etc.
Is there any way to generally allow these unlisted options above? Or did I miss an important point?
Update
, :
https://github.com/jmuheim/base/commit/dbb62dd68a8a243d056457c9093a6cd8ea3e3836
, , ( josh
pw joshjosh
), > . .
$ rake
.
, , , - UsersController
. , ?