title: How to separate views in rails application
body: <p>this is my code:</p>
  
  <p><strong>routes.rb</strong></p>
  
  <pre><code>get '/admin', :to =&gt; "admin#index"
  namespace :admin do
    resources :questionnaires, :users, :campaigns
  end
  </code></pre>
  
  <p><strong>admin_controller.rb</strong></p>
  
  <pre><code>class AdminController &lt; ApplicationController
  
    def index
    end
  
  end
  </code></pre>
  
  <p><strong>campaigns_controller.rb</strong></p>
  
  <pre><code>module Admin
      class CampaignsController &lt; AdminController
          def index
          end
  
          def new
          end
  
          def create
          end
  
          def show
          end
  
          def edit
          end
  
          def update
          end
  
          def destroy
          end
      end
  end
  </code></pre>
  
  <p>questionnaires and users controllers are exactly same of campaigns.</p>
  
  <p>When i try to access to:</p>
  
  <pre><code>/admin/campaigns
  </code></pre>
  
  <p>The view is the index view of admin.</p>
  
  <p>folder controller looks like that:</p>
  
  <pre><code>controllers
  | admin
    | campaigns_controller.b
    | questionnaires_controller.rb
    | users_controllers.rb   
    admin_controller.rb
  </code></pre>
  
  <p>folder views looks like that:</p>
  
  <pre><code>views
  | index.html.haml
  | admin
    | questionnaires
    | | index.html.haml
    | users
    | | index.html.haml
    | index.html.haml
  </code></pre>
  
  <p>How i can separate my views for each resource ?</p>