I\'m working on a Ruby on Rails app that uses cancancan. It works fine in production but when trying to log in as in development I get an unauthorized error.