Jim Kane wrote:
> Hi all, I am having the same problem that Greg originally described
> (undefined method: 'foo' during the running of the bootstrap), in
> addition to getting
And of course, now I'll reply to myself with all of the info I should
have included the first time:
I'm running Rails 1.0 and what appears to be the latest rev of Login and
User engines
I've tried it on Windows and OS X with the same results both places
in the console (in response to your second query):
>> User.roles
NoMethodError: undefined method `roles' for User:Class
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in
`method_missing'
from (irb):3
>> UserEngine::AuthorizedUser
=> UserEngine::AuthorizedUser
>>
So it knows a little something about the user engine, but it doesn't
seem to get everything loaded right. I did notice one oddity in the
engine docs, but I'm still a bit too green to know if it's relevant.
The Login Engine docs mention adding "require 'login_engine'" to the top
of app/controllers/application.rb. However, the user engine docs don't
show this. I think I tried several different permutations without
success, but I could have been flailing at that point.
Jim
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org