Cells is a generic view model implementation for Ruby. Cells-rails brings Rails-specific bindings.
- All asset-related helpers are now simply delegated to the global asset helper instance. This happens by automatically including
Cell::Helper::AssetHelperintoViewModel. - The global controller is passed to all cells via the context object. It's available via
ViewModel#controller. ViewModel#callandCollection#callare automaticallyhtml_safeed.
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'The gem is available as open source under the terms of the MIT License.