I have a Users resource and I want to display the "edit" link in the show.html.erb files only when that user is logged in. See screenshots.
Here is a list of users. Notice in the top right that Roger Sterling is logged in.
But if I click on Don Draper, the show.html.erb file displays the "Edit" button. I only want that to appear for Roger Sterling, in this case.
I'm using Devise for authentication. Any ideas on how to accomplish this? Let me know if you need to see any available code.