RailsCasts Pro episodes are now free!

Learn more or hide this

Chad Calhoun's Profile

GitHub User: n00ge

Site: http://chadcalhoun.me

Comments by Chad Calhoun

Avatar

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