Frederick Cheung wrote:
> I believe these days that if you plugin contains a folder called app,
> itself containing a folder called views then that will be added to the
> view paths automatically
That worked. I went back and tried the unshift thing too, this time with
a path that mirrored /app/vi
On Jul 6, 10:49 pm, Greg Willits wrote:
>
> I tried this with no joy:
>
> plugin_folder = "#{File.dirname(__FILE__)}"
> ActionController::Base.view_paths.unshift File.join(plugin_folder,
> 'views')
>
How are you trying to use the views in your apps ? If my memory is
correct, setting view_paths me
Greg Willits wrote:
> I have a plugin. I want to include some baseline views for the app code
> to "just use" -- meaning no need to copy files into /app, and no need to
> specify a path in the controller.
>
> Is that possible? If I *have* to add something to the controller, that's
> fine. The more
3 matches
Mail list logo