Devise and Strong Parameters

后端 未结 4 529
既然无缘
既然无缘 2020-12-05 09:47

I would like to know how to integrate both of this gems(devise + Strong Parameters), since strong params will likely be added to the rails core in 4.0

any help is we

4条回答
  •  情话喂你
    2020-12-05 10:11

    The easy way is to add a simple before filter in your ApplicationController. If you have different roles and/or other more complex scenario there are other options on the link below:

    https://github.com/plataformatec/devise#strong-parameters

提交回复
热议问题