Project

viewable

0.0
No commit activity in last 3 years
No release in over 3 years
Viewable is a Rails 4.0 gem that enables you to add 'resource' viewing functionality to your Rails application. A resource can be anything that is viewable e.g. function room, conference hall.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.4

Runtime

 Project Readme

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