I'm facing a dilemma. I have a User model, an Event model, and also using fullcalendar.
$(document).ready ->
$("#calendar").fullCalendar(
events: '/events.json'
)
In my coffeescript file, the code isn't working because it requires
events: '<%<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e4d9a491978196ca8d80">[email protected]</a>%>/events.json'
. However, since ruby-code cannot be used in a coffeescript file, I need to access user_id
.
Any suggestions on how I can achieve this?