Aaron, what version of Rails are you running? I'm using 1.2.3 and
adding an application.rhtml doesn't have any effect. I looked through
the render() and layout code in the codebase, looking for an
application.* default, and couldn't find it. Is it possible you're
running an older version of Rails, and that the current rev has dropped
that feature, for some reason?
-Rob
Aaron Campos wrote:
Simply creating an application.rhtml file inside of your base
application's app/views/layouts directory should certainly do the
trick. When doing that you don't need to specify a 'layout' directive
in your controllers since that's the default. I'm doing this
currently in my application and it too uses engine plugins. No
problems.
Cheers,
Aaron
On 5/9/07, Rob Morris <[EMAIL PROTECTED]> wrote:
Hey all. I'm making use of Engines-based plugins in several of my sites.
I have a wiki, a login engine, a CRM tool... Right now, I install the
plugin(s), then have to create a mask controller containing a layout
"standard-layout" call, and that's it. This would seem to be a common
problem for any engine-type plugin that aims to integrate with (rather than
live separately from) the main app.
Is there a better solution that I'm not seeing with existing code?
Assuming there isn't (I've looked), what would people think about patching
in support to the layout system of Rails to support an application-wide
default layout? The Rails docs mention using "application.rhtml" as a way
to achieve this, but it doesn't work, and there's no code in place to
support it in the latest stable release that I can find.
Thoughts?
_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org