title: How would it be written using REST?
body: <p>I am making a browser game, it's completely AJAX-based, so I am trying to create a proper RESTful API.
  So, I have a <code>User</code> model (basically, <code>User</code> has weapon, health and action points).<br>
  So I have a <code>users</code> resource. Now, I want to implement user attacks.<br>
  Scenario: user with id = <code>1</code> attacks user with id = <code>2</code>.<br>
  What I would do is like this:    </p>
  
  <ol>
  <li>Send the following info (with POST-request):<br>
  <ul>
  <li>target_id (well, it's stored in ApplicationController from session)</li>
  <li>attacker_id</li>
  <li>weapon_id (weapon attacker uses to attack his target)<br>
  to <code>/users/attacker_id/attack/</code></li>
  </ul></li>
  <li>Validate if user has enough action points and health for attack, if target is not dead yet. If these conditions fail - do nothing, if they succeed - decrease attackers action points and ammo, decrease target HP. All of this is done in model method called <code>attack</code> for attacker.</li>
  </ol>
  
  <p>Is it a proper way in general or if there is a better, Rails way?<br>
  Thank you!</p>