Add before_filter to application_controller so cancan will work on Rails 4. See https://github.com/ryanb/cancan/issues/835#issuecomment-20229737