class PagesController < ApplicationController
  layout :choose_layout

  def home
  end

end

class PagesController < ApplicationController
  before_filter :public_view_check
  layout        :choose_layout

  def home
  end

  private

  def public_view_check
    redirect_to app_home_path if current_user
  end
end

Add redirect to app_home if logged in at public area
Add redirect to app_home if logged in at public area
