Re: [Rails] Re: how to change Root_path after user sign in ?
On 22 December 2011 21:08, Dave Aronson
<googlegroups2dave@davearonson.com> wrote:
> On Thu, Dec 22, 2011 at 16:00, Tim Shaffer <timshaffer@me.com> wrote:
>
>> You could just have your welcome#index action redirect to another
>> controller/action if the user is signed in.
>
> That will work nicely for most purposes, but also means that logged-in
> users can't access the regular root page. Just have to be careful not
> to have anything they might need, *only* on there.
It may work better the other way around, make the default root be the
page for logged in user and redirect to welcome page if not logged in.
Colin
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home