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! While you're at it, check out some resources Treehouse students have shared here.
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 trialBetsy Hauser
1,905 PointsCustomizing 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
Zander Perry
2,227 PointsHey 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
Treehouse Guest TeacherGreat answer, Zander! Let us know if you have any more questions, Betsy.
Betsy Hauser
1,905 PointsThanks 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!!