Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

markuslopez
markuslopez
371 Points

user signed in/out landing page changes

so this is a pretty basic question, i've searched and seen similar topics but it didn't work for me. doing the treebook app

i want a landing page with info and etc when not signed in, but when signed in I want the status feed.

also, I want profile pages to be able to be viewed by anyone. so basically like twitter.

I'm using rails 3.2.6

thanks in advance

2 Answers

Have you read this forum post on stackoverflow. If not take a look at it. It looks like what you might be asking for. You can always post your question on stackoverflow as well as treehouse and see which Answear fits your question better. I am not too good with Ruby yet so I can't give you the exact code but this post looks like it might help you out.

http://stackoverflow.com/questions/5825135/devise-sign-up-page-as-welcome-landing-page-then-to-user-profile

markuslopez
markuslopez
371 Points

thanks for the reply. I'll look into this. I'm still looking for help on the best way possible so anybody else? thanks!

markuslopez
markuslopez
371 Points

I've tried the first suggestion but it now it only shows my landing page. I need the second part that will show the news feed when signed in. thanks!