RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: n00ge
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.