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 :-)
Written by Andrea Pavoni
Related protips
2 Responses
over 1 year ago
·
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#