RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: n00ge
Site: http://chadcalhoun.me
If you're using namespaces for your controllers, add a context for the view helpers as well. Like so: if permitted_to? :create, :model, context: :namespace_model
FYI, the & shortcut syntax for merging has been deprecated. Just use .merge instead. https://github.com/rails/rails/commit/66003f596452aba927312c4218dfc8d408166d54
If you're using namespaces for your controllers, add a context for the view helpers as well. Like so:
if permitted_to? :create, :model, context: :namespace_model
FYI, the & shortcut syntax for merging has been deprecated. Just use .merge instead.
https://github.com/rails/rails/commit/66003f596452aba927312c4218dfc8d408166d54