Challenge Solution: Sign-in Status
Explore how to check if a user is signed in within a Rails view file. Learn to use conditionals with user_signed_in? or current_user to prevent errors and display content only to authenticated users.
We'll cover the following...
We'll cover the following...
Solution
//= link_tree ../images //= link_directory ../javascripts .js //= link_directory ../stylesheets .css
Explanation
app/views/links/index.html.erb
Line 11: ...