Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cesswairimu/f5147aaeaf2382683c94bc35ad7cdc1e to your computer and use it in GitHub Desktop.
Save cesswairimu/f5147aaeaf2382683c94bc35ad7cdc1e to your computer and use it in GitHub Desktop.
Add a notification bar
The friendship request to current_user happens after creation and nagivating to `/users` changingthe `@not_friends` method
to
`@not_friends = User.where.not(id: current_user.friendships.map(&:friend_id)).reject{|user| user == current_user})`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment