Skip to content
Rails support for Cells.
Branch: master
Clone or download
Latest commit 9f2c060 Apr 25, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Merge pull request #44 from trailblazer/fix-warning Apr 24, 2018
test
.gitignore
.travis.yml Add Rails 5.2 test Apr 24, 2018
CHANGES.md update changelog Apr 5, 2018
Gemfile
LICENSE.txt Add MIT license so library can be enjoyed by opensource community. Nov 26, 2016
README.md Add MIT license so library can be enjoyed by opensource community. Nov 26, 2016
Rakefile Fix build Apr 22, 2018
cells-rails.gemspec

README.md

Cells::Rails

Cells is a generic view model implementation for Ruby. Cells-rails brings Rails-specific bindings.

Rails Features

  • All asset-related helpers are now simply delegated to the global asset helper instance. This happens by automatically including Cell::Helper::AssetHelper into ViewModel.
  • The global controller is passed to all cells via the context object. It's available via ViewModel#controller.
  • ViewModel#call and Collection#call are automatically html_safeed.

Installation

Note that cells-rails is designed to work with Cells >= 4.1.

Add this line to your application's Gemfile and keep it real:

gem 'cells-rails'

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.