I'm exploring Rails for the first time and trying to add some fairly straightforward role-based security to my test app. Some Googling seemed to indicate rails-authorization is the way to go for this. I followed the README and everything seemed to be going well, but now I'm trying to associate a User with a Role and it fails. Here's the ...
I'm trying to get the permit method to work using the rails-authorization-plugin and authlogic, and I keep running into this error:
When I try:
class ApplicationController < ActionController::Base
...
before_filter permit 'admin'
...
I get this:
Authorization::CannotObtainUserObject in HomeController#index
Couldn't find #curre...
I'm testing my app out on Heroku (which is f***ing amazing!) and I realized that I have no way of creating my root user.
I'm using Authlogic and rails_authorization_plugin.
Is there someway I can add a section to one of my migration files to add this user and assign it the role of root? Or can I do this through a rake task?
Any insigh...