title: FullCalendar scheduler update resource JSON object
body: <p>I'm working with Rails and FullCalendar Scheduler and I want to be able to update the JSON object I give as resource when I add a new one.</p>
  
  <p>Here is a simplified version of my calendar options:</p>
  
  <p><strong>fullcalendar-settings.js</strong></p>
  
  <pre><code>$(document).ready(function() {
      $('#calendar').fullCalendar({
          header: {
              left: 'promptResource, prev, next, today',
              center: 'title',
              right: 'agendaWeek, timelineDay'
          },
          customButtons: {
            promptResource: {
                text: '+ maker',
                click: function() {
                    var name = prompt('Name');
                    if (name) {
                        $('#calendar').fullCalendar(
                            'addResource', { title: name }, true // scroll to the new source?
                        );
                    }
                }
            }
          },
          defaultView: 'timelineDay',
          defaultDate: moment(),
          editable: true,
          resourceColumns: [
              {
                  labelText: 'Client',
                  field: 'title'
              }
          ],
          resources: 'scheduler.json',
          events: []
      });
  });
  </code></pre>
  
  <p><strong>scheduler.json</strong></p>
  
  <pre><code>[
    { "id": "1", "title": "LE" },
    { "id": "2", "title": "DB" },
    { "id": "3", "title": "VB" },
    { "id": "7", "title": "RL" }
  ]
  </code></pre>
  
  <p>Resources are loaded from 'scheduler.json' and I have a button with which you can add a new resource but it is for now only temporary and disappear on reload.</p>
  
  <p>So my question is how can I update the JSON object within 'scheduler.json' when I add a new resource ?</p>
  
  <p>Thanks in advance</p>