Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

display welcome message with username after login #10

Open
pixeltocode opened this issue Jan 28, 2010 · 1 comment
Open

display welcome message with username after login #10

pixeltocode opened this issue Jan 28, 2010 · 1 comment

Comments

@pixeltocode
Copy link

hi...is it possible to display a welcome message with the username after login, for example "welcome back John!" ?

thanks

@pixeltocode
Copy link
Author

in the controller flash[:message] = "welcome back ", current_user.login
and in the view <%= flash[:message] %>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant