Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Customizing forms/Check Sign in Status Challenge

Hi all!
I have no idea what i'm doing wrong in the customizing forms code challenge (if/else). Can someone help me out?

3 Answers

Hey Betsy - What you're trying to do is create an if/else statement checking to see if the user is logged in.

Should look like this I think:

<% if user_signed_in? %>
   <p>You're signed in blah blah</p>
<% else %>
   <p>You are Not signed in</p>
<% end %>
Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Great answer, Zander! Let us know if you have any more questions, Betsy.

Thanks Zander!! Totally worked. Jason - I'm in the Starter League in Chicago, and I have to say I LOVE treehouse. Congrats on the recent awesome news. You guys rock!!