{"repo":"excid3/simple_calendar","free":true,"listed":false,"github":"https://github.com/excid3/simple_calendar","clone":"git clone https://github.com/excid3/simple_calendar.git","description":"A wonderfully simple calendar gem for Rails","language":"Ruby","stars":1666,"topics":["calendar","ruby","week-calendar","custom-calendar","meeting","month"],"license":"MIT","category":"productivity","readme_excerpt":"Simple Calendar 📆 A calendar for your Ruby on Rails app. Simple Calendar is designed to do one thing really really well: render a calendar. It lets you render a calendar of any size. Maybe you want a day view, a 4 day agenda, a week view, a month view, or a 6 week calendar. You can do all of that with the new gem, just give it a range of dates to render. It doesn't depend on any ORM so you're free to use it with ActiveRecord, Mongoid, any other ORM, or pure Ruby objects. Thanks to all contributors for your wonderful help! Installation ------------ Just add this into your Gemfile followed by a bundle install: If you're using Bootstrap, the calendar should already have a border and nice spacing for days. Optionally, you can include the default stylesheet for the calendar in your app/assets/stylesheets/application.css file: or in your SCSS app/assets/stylesheets/application.scss file: Usage ----- Generating calendars is extremely simple with simple calendar. The first parameter is a symbol that looks up the current date in params . If no date is found, it will use the current date. In these examples, we're using :start date which is the default. Month Calendar You can generate a calendar for the month with the month calendar method. To show the day of the month instead of the date, use Week Calendar You can generate a week calendar with the week calendar method. Setting number of weeks is optional and defaults to 1. Custom Length Calendar You can generate calendars of any lengt","default_branch":null,"files":null,"tree":[],"storefront":"/r/excid3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/excid3/simple_calendar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}