title: Changing the default view path in Rails?
body: <p>I want to be able to change dynamically the view folder. The aim is to be able to change completely the web design  depending on the request. I am thinking about something like this :</p>
  
  <pre><code> Class PagesController
  
       default_views_path(current_theme_path)
  
       def show
           Blablah...
       end
  
   end
  </code></pre>
  
  <p>Supposing a directory architecture like this :</p>
  
  <pre><code> -apps
   --views
   ---theme 1/show.html.erb
   ---theme 2/show.html.erb
   ---theme 3/show.html.erb
  </code></pre>
  
  <p>I search over the web and I have found <code>preprend_view_path</code>. (:deprecated) Do you think this is a good idea ot use this ? Any feedback ?</p>
  
  <p>EDIT</p>
  
  <p>In fact, I want to simplify this :</p>
  
  <pre><code> Class PagesController
  
       def show
           render "#{current_theme}/show"
       end
  
       def edit
           render "#{current_theme}/edit"
       end
  
       def list
           render "#{current_theme}/list"
       end
  
       def index
           render "#{current_theme}/index"
       end
  
   end
  </code></pre>
  
  <p>Any Solutions ?</p>