Sure enough, that made it so the views would load, but it killed
overriding. This is the only thing I can't manage to get working. I
looked in template.rb to see if I could figure out what was happening,
but nothing I send to the logs show up, so it seems it's not even
being hit.
Anybody have any ideas?
Eric
On 5/12/07, Eric Jensen <[EMAIL PROTECTED]> wrote:
> I ended up adding this to my application controller:
>
> def self.template_root
> "#{RAILS_ROOT}/vendor/plugins/newhomers/app/views"
> end
>
> My app seems to work now, but I have a feeling that might come back to
> bite me once I start trying to do over riding. Deal with that later,
> I guess. What I'm trying to resolve now is my CSS images. My CSS
> files and HTML images are being loaded just fine using :plugin =>
> "my_plugin" with image_path and stylesheet_tag. But inside the CSS
> people often do URL('/images/bg.jpg') and what not. Those are not
> working. And since I can't use Ruby in CSS, I'm not sure how to fix
> that. Any ideas?
>
> Eric
>
> On 5/12/07, Cynthia Kiser <[EMAIL PROTECTED]> wrote:
> > Quoting Eric Jensen <[EMAIL PROTECTED]>:
> > > I've been using engines over the weekend and have been very pleased
> > > with my smaller test apps. But I'm now trying a more complex app and
> > > running into some issues. This app uses the controller modules, I.E.
> > >
> > > class Admin::UsersController < ApplicationController
> > >
> > > So the views are in app/views/admin/users.
> > >
> > > With engines the site functions properly until it needs to go into an
> > > Admin controller. Then it says it can't find the view. So it seems
> > > to me it no longer looks in the engine for the view, but tries to find
> > > it locally. Anybody know of a fix for this?
> >
> > Not right off hand, but see if the ActiveRbac engine that is
> > compatible with Rails 1.2 and the new engines code has already solved
> > this. (And if so, please report back. I got iterupted and stopped
> > coding or I would have hit this problem too)
> >
>
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org