title: Limiting the view of certain page elements to only the owner of the profile?
body: <p>I have a user model and a profile model.</p>
  
  <p>user <code>has_one :profile</code><br>
  profile <code>belongs_to :user</code></p>
  
  <p>On the "show" view of the profile, there's an input field that only the owner of the profile should see.  I currently have it limited to where only a logged-in user can see it, but I need it to go further and only appear visible to the user who owns that particular profile.</p>
  
  <p>I am using the following to limit the view to only logged in users: &lt;% if logged_in? %>.</p>