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 important need is to have files reside in the plugin folder. I've googled and played with various blog tips, but nothing is working the way I am wanting. This is not a case of applying skins or themes. I just want a set of default files to be available to the app. The closest thing I found was this post, but it doesn't work. http://weblog.rubyonrails.org/2007/2/4/new-feature-for-rails-2-0-multiple-controller-view-paths The key piece that confuses me is the line ActionController::Base.view_paths.unshift File.join(directory, 'views') -- it's not clear where "directory" is being defined. I tried this with no joy: plugin_folder = "#{File.dirname(__FILE__)}" ActionController::Base.view_paths.unshift File.join(plugin_folder, 'views') I must be missing something, because the above blog post seems like this should be fairly simple. -- gw -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

