viewable-gem

:octocat:

Gem Version Build Status Code Climate Dependency Status

Installation

Viewable works with Rails 4.0. Add this line to your Gemfile:

gem 'viewable', '~> 0.5.19'

Then execute:

$ bundle

Or install it yourself as:

$ gem install viewable

After you've installed the gem, you need to run the generator:

$ rails generate viewable:install

Alternatively you can specify a named resource such as 'room'

$ rails generate viewable:install room

The generator will create the file structure you need to implement viewing functionality into your app, it will also run migrations after generating these:

  • controllers
  • models - resource(room) and viewing
  • views
  • javascript - which uses the jQuery Full Calendar (old) plugin
  • css - some basic CSS is provided which you may want to override
  • routes