title: Rails action after pressing button
body: <p>I have <code>buy</code> method in my <code>item</code> controller and I tried to print user email who have pressed <code>buy</code> button, but I don't know how to do it. Is there a way to do it without creating Buy model, where I can connect user with my models?</p>
  
  <p>my buy method:</p>
  
  <pre><code>def buy
      item = current_user.items.find(params[:id])
      item.ammount -= 1
      item.save
      flash[:success] = "You bought item"
      redirect_to :back
  end
  </code></pre>
  
  <p>Thanks!</p>