Closed Peterortiz82 closed 8 years ago
@Peterortiz82 Well this is really awesome. Let me just check on that. Will merge it soon. Great work! 👍
Thanks!
@Peterortiz82 This is pretty awesome feature. Why didn't I think of this. I might have an alternate approach with the path thing. Let me make the changes and merge this. :+1
@sudharti Sounds good! 👍
What is this?
Users can now mention their friends in a post or in a comment. This will create a link to the mentioned users profile page in the post/comment.
What did I do?
I added the jquery-atwho-rails gem that made it possible to mention friends. I created a Mention module that is currently being used in the Post and Comment class.
Screenshots
Feedback
I'm still pretty new to programming and was having trouble getting the
mentionable_user_path(current_user)
to work in a.js
file since I needed thecurrent_user
id. I had to includ the JQuery in script tags in the post & comments_form
partial. I'm not happy with that and would rather have all of the JS in the correct files and not in script tags. If you know of a solution to this please let me know and I will update the code. Also, any other feedback would be appreciated. Thanks.