Last active
March 9, 2020 05:33
-
-
Save cesswairimu/8a739346b5885baa9bc0b061bddd7098 to your computer and use it in GitHub Desktop.
Add a notification bar
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
(Request number 1)I looked and saw that this is happeninG) I can see the comments and likes on the news feeds page..let me know if you understand what he meant. | |
(Request number 2)The friendship request to current_user happens after creation and nagivating to `/users` changing the | |
`@not_friends` | |
method in users_controller to "@not_friends = User.where.not( | |
id: (@confirmed_friends.map(&:id) + @pending_friends.map(&:id))).reject{ |user| user == current_user }" should solve this | |
(Request number 3) On line 33 of users index view add another button <%= button_to "Reject Friend",{:controller => 'friendships', :action => 'destroy' :id => friendship.id }, {:method => :patch, :class => "bg-red font-white p-1 acceptingfriend"} %> | |
(Request number 4) Add a link button after line 10 of users index same as request 3 above but you can change the name to "Remove Friend" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment