title: Rails - Rendering different "dashboard/user profile" depending on the type of user?
body: <p>My app has different user types/model, ex: Doctor and MedicalInstitution (not sure if those are good names btw). They have polymorphic association to User.</p>
  
  <p>The controllers so far:</p>
  
  <p>HomesController - Verify if user is logged in or not. If yes redirect to dashboard_path if not redirect to landing page.</p>
  
  <p>DashboardsController - "Display the current user profile." Code:</p>
  
  <pre><code>class DashboardsController &lt; ApplicationController
    before_filter :authenticate_user!
    def show
      @user = current_user.profile
      render "#{@user.dashboard_something_variable}_dashboard"
    end
  end
  </code></pre>
  
  <p>Is this a good idea, or would you split the controllers? I feel that DoctorsController's show action would be for other people to view radiologist profiles, not for the Doctor himself to view his profile/private things.</p>
  
  <p>Thank you!</p>