Forum: Ruby on Rails rendering layouts/views from plugins

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
71477e5162d702dae2a072d66a855fec?d=identicon&s=25 wbsurfver@yahoo.com (Guest)
on 2009-06-01 20:38
(Received via mailing list)
I am wondering if there is an easy way to render layouts and views
from the plugin directory, as well as javascript and css ?

 I know I could have a rake task copy them from the plugins to where
they would normally go, but they may change from time to time within
the application and then need to go back into the plugin. If I cause
them to function as a plugin, then as I develop my app, the plugin
changes as well. This is just a plugin that I use for myself only and
would not get used alot except shared between a few apps, though if I
updated it, I would update it in one app and then copy the changes to
the other apps by copying that plugin from one app to another.

 The other possibility is I could have a rake task copy them from the
app back into the plugin dir, but that seems sort of strange.

 I'm not sure if there are some better approaches ...
Acd62030df551952268e84c8fff26a5b?d=identicon&s=25 James Adam (lazyatom)
on 2009-06-02 13:20
(Received via mailing list)
You should get the answers to most of your questions here:
http://rails-engines.org/news/2009/05/18/engines-a...

- James
This topic is locked and can not be replied to.