I have a controller called ProjectsController . Its actions by default look for views inside app/views/projects . I would like to change this path for all methods ( index , show , new , edit , etc.) in the controller.
For example:
class ProjectsController < ApplicationController
Note that I am not modifying each method using render , but defining a default path for all of them. Is it possible? If so, how?
Thank!
ruby ruby-on-rails model-view-controller ruby-on-rails-3
Yuval Karmi Nov 29 '10 at 6:08 2010-11-29 06:08
source share