OK I found out the root of the problem (actually Andrew Roth helped me find it during a brief chat last night.)
I'm using active_merchant in my project and I'm requiring it from the railscart plugin (that's the plugin that was coming up nil.) Ultimately active_merchant does the following in integrations.rb: Inflector.inflections do |inflect| inflect.uncountable 'bogus' end Somehow this is kicking off the mapping stuff before it should. I don't know enough about Rails, plugins or Engines to say why this is happening but that's what I'm observing. If I move "require 'active_merchant'" from railscart's init.rb and move into the application's environment.rb everything works fine. The mappings are loaded and no nasty stack trace. Weird. But resolved now. Thanks to everyone for all of the help. Sean On Jan 3, 2008 6:17 PM, Sven Fuchs <[EMAIL PROTECTED]> wrote: > Am 03.01.2008 um 23:12 schrieb Sean Schofield: > > >> Just guessing, but ... maybe it isn't a valid plugin in terms of > >> Rails > >> 2.0? I.e. does it have an init.rb file and/or a lib subdirectory? > > > > Yes it has both. Is that a problemo? > > Whoops, no. Sorry for not being more clear. > > Rails regards a directory with an init.rb and/or a lib subdir as a > valid plugin. As such it should be added to the Engines.plugins hash. > If it's not there when routing is initialized, something pretty weird > is going on. > > > > > -- > sven fuchs [EMAIL PROTECTED] > artweb design http://www.artweb-design.de > grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone) > d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile) > > > > _______________________________________________ > Engine-Users mailing list > [email protected] > http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org > _______________________________________________ Engine-Users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
