-
-
Save abhianair/17793ad6041e8febccb47ef42bb96510 to your computer and use it in GitHub Desktop.
take a username out of user's email in ERB
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
<%= @posts.user.email.split('@')[0].capitalize %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment