How to display events on a calendar using Ruby?

I am creating a ruby ​​calendar application on rails. I use my own scheme for storing events, but I do not know how to display events on the calendar, as well as how to add a calendar to my application.

I need to write code to display the calendar, or I can use any plugin to display the calendar.

+3
source share
4 answers

I think calendar_helper plugin is what you want. It provides a calendar method for your views that you can call to create a calendar for viewing the month in HTML.

, , , , .

+5

.

, , AJAX, .

+1

I also had to build a calendar in rails. I did not like any of the existing calendar gems, because they are too much. I wanted to make the calendar itself so that I could control the style. I also had an existing event model, so I don't need any kind of event handling. I ended up creating a gem stone . This is pretty simple when you look at README. I plan to improve it to have weekly and daily calendars. Good luck

+1
source

Source: https://habr.com/ru/post/1698518/


All Articles