```ruby
class PagesController < ApplicationController
  layout :choose_layout

  def home
  end

end
```

Add redirect to app_home if logged in at public area
user
```ruby
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
```
assistant