Hi David, this sounds strange. I'll try to reproduce this scenario here and get back to you.
jens On Sat, Aug 19, 2006 at 10:40:50AM +0200, David Smalley wrote: > I posted this issue as a bug on the acts_as_ferret trac > (http://projects.jkraemer.net/acts_as_ferret/ticket/36) but need to get > this working asap. so hopefully someone can point me in the right > direction. > > To try and sum this up in better terms than I used in the original bug > report, the problem I am experiencing seems to be related to the fact I > am using inheritance in my controllers. > > I have an admin area and a public area that for DRY purposes use > inheritance to pass down acl and authentication filters. Having > installed ferret and acts_as_ferret I am able to add it to models and > build indexes from the console, I can then search the index no problem. > > Once I start using the app from a web browser, I keep getting name > errors on all the models that have acts_as_ferret added to them. The > error tells me that the model name (e.g. Page) is an uninitialized > constant. In addition the error message also tells me the problem > occured when attempting to load file e.g. /admin/page.rb > > All my models are stored in the /models/ directory, however the > controller calling the model is inherited from a controller called > AdminAreaController within /controllers/admin/pages_controller.rb > > So, why when I add acts_as_ferret does rails try to look for my model in > /model/admin if the controller is in /controllers/admin, but if i use > the console then everything is fine? > > Any ideas, I'm a bit stumped... > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ferret-talk -- webit! Gesellschaft für neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED] Schnorrstraße 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

