Created
June 21, 2011 22:29
-
-
Save dchapman1988/1039091 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show | |
if current_user | |
unless current_user.stocks? | |
redirect_to root_path, :notice => "You need to add some stocks first." | |
end | |
@stocks = current_user.stocks | |
else | |
redirect_to new_user_session_path | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment