Installation & Update

Installation

Add 'matestack-ui-core' to your Gemfile
1
gem 'matestack-ui-core', '~> 3.0.0'
Copied!
and run
1
$ bundle install
Copied!

Matestack folder

Create a folder called matestack in your app directory. All your Matestack layouts, pages and components will be defined there.
1
$ mkdir app/matestack
Copied!

Controller setup

Add the Matestack helper to your controllers. If you want to make the helpers available in all controllers, add it to your ApplicationController :
app/controllers/application_controller.rb
1
class ApplicationController < ActionController::Base
2
include Matestack::Ui::Core::Helper
3
#...
4
end
Copied!
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.

Update

Ruby Gem

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:
1
bundle update matestack-ui-core
Copied!
and then check the installed version:
1
bundle info matestack-ui-core
Copied!