title: Codeigniter rest issue with backbone
body: <p>I just started using rest library wrote by Phil Sturgeon. I started using it by writing some simple examples. I short of get 'post' and 'get' work, but not for put and delete. I have some questions based on the code below.</p>
  
  <pre><code>// a simple backbone model
  var User = Backbone.Model.extend({
      urlRoot: '/user',
      defaults:{
          'name':'John',
          'age': 17
      }
  });
  
  var user1 = new User();
  //user1.save(); // request method will be post unless the id attr is specified(put)
  //user1.fetch(); // request method will be get unless the id attr is specified
  //user1.destroy(); // request method will be Delete with id attr specified
  </code></pre>
  
  <p>In my CI REST controller</p>
  
  <pre><code>class User extends REST_Controller
  {
      public function index_get()
      {
          echo $this-&gt;get(null); //I can see the response data
      }
  
      public function index_post()
      {
          echo $this-&gt;post(null); //I can see the response data
      }
  
      public function index_put()
      {
  
      }
  
      public function index_delete()
      {
  
      }
  }
  </code></pre>
  
  <p>Basically, the get and post in the controller will be called when I save a model or fetch a model. With a id specified in the model, I can make a put or delete request to the server using model.save() and model.destroy(). however, I got a server error. it looks like index_put or index_delete can not be called. does anyone know How I can handle:</p>
  
  <ol>
  <li>put request in the controller</li>
  <li>delete request in the controller</li>
  <li>get a single record with id specified</li>
  </ol>
  
  <p>From the git, I only saw him to list index_post and index_put. there is no index_put and index_delete demo. should anyone can help me out? thanks</p>