Follow Tim solution, Now I did.
root :to => welcome#index
class ApplicationController < ActionController::Base
before_filter :authenticate_user!, :except[:index, :show]
end
In my welcome controller index
def index
if user_signed_in?
redirect_to projects_url
end
end
I would like to do like colin explained.
root :to => project#index
but how to show the welcome#index as root if user not signed in ?
Gautam Pai,Thank for reply. :)
Using ur explaination.. when user not signed in.
localhost:3000 it will go to login page.
I want it go welcome#index before user choose to login.
Correct me, if I misunderstand ur explanation.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.