Installation & Update
Add 'matestack-ui-core' to your Gemfile
gem 'matestack-ui-core', '~> 3.0.0'
$ bundle install
Create a folder called
matestackin your app directory. All your Matestack layouts, pages and components will be defined there.
$ mkdir app/matestack
Add the Matestack helper to your controllers. If you want to make the helpers available in all controllers, add it to your
class ApplicationController < ActionController::Base
Now, you are able to create UI components in pure Ruby and use them in your Rails views. Additionally you can substitute Rails views and layouts with Matestack pages and layouts.
Depending on the entry in your Gemfile, you might need to adjust the allowed version ranges in order to update the Gem. After checked and adjusted the version ranges, run:
bundle update matestack-ui-core
and then check the installed version:
bundle info matestack-ui-core