View paths in Rails 2.0

New in rails 2.0:

ActionController::Base.append_view_path

This is useful for loading views from a plugin or gem:

ActionController::Base.append_view_path(File.dirname(__FILE__) + "/views")

There is also ActionController::Base.prepend_path.

Tags: ,

Leave a Reply