Last Updated: February 25, 2016
·
2.27K
· apeacox

Rails4 StrongParameters with Devise and multiple resources

Rails 4 will use StrongParameters by default. However, it doesn't seem that Devise is ready for this feature, even using its rails4 branch. There's a good example that explains how to solve this problem when dealing with only one resource (eg: User).

I forked that code to handle more resources (eg: User and Admin) without repetitions:

https://gist.github.com/apeacox/5245821

enjoy :-)

2 Responses
Add your response

Thanks for the link. To be honest, I wrote this tip several days before that Readme was updated with those instructions. Moreover, I've used the non-lazy way ;-)

over 1 year ago ·