Im trying to add fullcalendar to my rails project with the gem 'fullcalendar-rails', i have assigned tasks that I want to show in thje calendar, the had a start_time and an end_time. I do everything as it said but it doesn't show. Now I'm seeing simple calendar but is not the same. I install momentsjs-rails gem, then in application.js and application.scss
js
//= require moment
//= require fullcalendar
//= require fullcalendar/locale-all
$('#calendar').fullCalendar({
eventSources: ["/assigned_tasks"]});
function eventCalendar() {
return $('#calendar').fullCalendar({
eventSources: ["/assigned_tasks"]
});
};
function eventCalendar() {
return $('#calendar').fullCalendar({
eventSources: ["/assigned_tasks"]
});
};
function clearCalendar() {
$('#calendar').fullCalendar('delete');
$('#calendar').html('');
};
$(document).on('turbolinks:load', function(){
eventCalendar();});
$(document).on('turbolinks:before-cache', clearCalendar);
scss
*= require fullcalendar
*= require fullcalendar.print
But the problem is that i create a div in the home page and it doesn't show a calendar
div id="calendar"
Sorry my english