How can I have a link_to the day when an event starts through a rails link_to?
On one page I have the calendar and on another page I have a table with a list of events like:
- @events.each do |event|
= event.id
= link_to "Today", calendar_path(fullcalendar.gotoDate(event.starts_at))`
(the link_to is not working, of course, but kind of describes the need. How can I make it work?)
I want to click on the event on one page and it should open another calendar HTML page and take you to the right date in fullCalendar
The basic calendar code in application.js:
function eventCalendar() {
return $('#event_calendar').fullCalendar({
});
};