I want to show different root page for users in Rails.
I defined the root:
root :to => 'welcome#index'
And the welcome control:
class WelcomeController < ApplicationController
before_filter :authenticate_user!
def index
end
end
Currently it is ok for logged in users, but the not logged in users redirected to /users/sign_in
I want to show static root page and not redirect.