Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cal_months_rails4

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cal_months_rails4

  • 1.2.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rails 3

Cal Months

Allows for importing ical format calendars to the database with some default calendar views.

Installing

Install the gem: gem cal_months

Install the required files in your rails app: $ rails g cal_months:install

Run migrations: $ rake db:migrate

Manually installing assets

Stylesheet: // require cal_month

Javascript: //= require cal_month

Add Default Calendar Partial to a View

Add this to your view: render 'cal_months/calendar'

Add this to your controller:

@cal_month = CalMonth.current_month
@current_event = CalMonth.upcoming_events.first

Note: @cal_month can be any CalMonth, and @current_event can be any item in the CalMonth.upcoming_events array.

Importing icalendar

ical = File.open('path_to_ical.ics', 'r')
CalEvent.import_from_ical(ical)

FAQs

Package last updated on 02 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc