search for: set_view_path

Displaying 1 result from an estimated 1 matches for "set_view_path".

Did you mean: set_view_paths
2011 Feb 21
2
self.prepend_view_path - am I missing something
...is easier varying static text in the views and then sharing the form templates via partials etc. Rails 2.3.10 and looking at the documentation at http://rubydoc.info/docs/rails/2.3.8/ActionController/Base#prepend_view_path-instance_method application_controller.rb before_filter :domain_lookup, :set_view_paths protected def set_view_paths self.prepend_view_path "app/views/#{controller_name}/ #{@domain.policy.policy_type}" end according to the documentation this should add this path to the front of the search order for this request only (as opposed to the similar class method which...