title: Full Calendar modal link with Rails event.id
body: <p>OK...
  I successfully added full calendar plugin to my Rails 4 application. Everything works as much as the full calendar demo runs.  I am manually creating the jSON events object using loops (not ideal but it works). The calendar displays with the events correctly. When I click an event the appropriate modal appears with extended info on the event. </p>
  
  <p>Now in the modal I want to have a link to the Rails edit form for that event. </p>
  
  <p>I created a custom jQuery var </p>
  
  <pre><code>$(document).ready(function() {
  
  $('#calendar').fullCalendar({
  header: {
  left: 'prev,next today',
  center: 'title',
  right: 'month,basicWeek,basicDay'
  },
  defaultDate: '2015-12-12',
  editable: true,
  eventLimit: true, // allow "more" link when too many events
  events: [&lt;%= @caldata %&gt;],
  
  
  eventClick:  function(event, jsEvent, view) {
      $('#modalTitle').html(event.title);
      $('#modalBody').html(event.description);
      $('#editUrl').html("events/" || event.id || "/edit");
      $('#eventUrl').attr('href',event.url);
      $('#fullCalModal').modal();
  }
  });
  
  });
  </code></pre>
  
  <p>The code for the Modal is </p>
  
  <pre><code>&lt;a href="#editUrl"&gt;edit&lt;/a&gt;
  </code></pre>
  
  <p>which no doubt will not render the link. 
  Any ideas on how to leave the Modal and go to the Rails edit event form. After updating i can easily return to the full calendar display.</p>
  
  <p>many dankes</p>