title: How to change the default path of view files in a Rails 3 controller?
body: <p>I have a controller called <code>ProjectsController</code>. Its actions, by default, look for views inside <code>app/views/projects</code>. I'd like to change that path for all methods (<code>index</code>, <code>show</code>, <code>new</code>, <code>edit</code> etc...) in the controller.</p>
  
  <p>For example:</p>
  
  <pre><code>class ProjectsController &lt; ApplicationController
  
    #I'd like to be able to do something like this
    views_path 'views/mycustomfolder'
  
    def index
      #some code
    end
  
    def show
      #some code
    end
  
    def new
      #some code
    end
  
    def edit
      #some code
    end
  end
  </code></pre>
  
  <p>Please note I am not changing each method with <code>render</code> but defining a default path for all of them. Is this possible? If so, how?</p>
  
  <p>Thank you!</p>