James Adam wrote: > also check that you've got Engines.start :login, :user in your > environment.rb file...
I just had Engines.start, so I tried your suggestion and it seems to help. I'm no longer getting the missing method error. At this point I started seeing some database issues. This error was being logged on most every request: Role Load (0.000000) RuntimeError: ERROR C42P01 Mrelation "users_roles" does not exist Fnamespace.c L200 RRangeVarGetRelid: SELECT * FROM roles LEFT JOIN users_roles ON roles.id = users_roles.role_id WHERE (users_roles.user_id = 1 ) I didn't have a user_roles table, but I had a _roles table. I tried renaming it to user_roles but it didn't seem to help even after restarting the server. So I dropped all the tables and ran rake engine_migrate again, then rake bootstrap again. This time I had a user_roles table, but when I try to access a page it just sits there, never to respond. I'm not sure what it's doing, but this is the last thing logged: Role Count (0.003174) SELECT COUNT(*) FROM roles SQL (0.006606) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = 'roles'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum Role Load (0.002843) SELECT * FROM roles WHERE (roles."omnipotent" = 't' ) -- 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
