Matestack Ui Core
AboutMatestack Ui CoreMatestack Ui VueJsMatestack Ui Bootstrap
3.0
3.0
  • Welcome
  • Migrating from 2.x to 3.0
  • Getting started
    • Installation & Update
    • Hello World
  • HTML Rendering
    • Basic Rendering Mechanism
    • Integrating Action View Helpers
    • Integrating Rails Views or Partials
  • Components
    • API
    • Usage on Rails Views
    • Usage on Matestack Pages
    • Usage on Matestack Layouts
    • Usage in Isolation
    • Registry
  • Pages
    • API
    • Rails Controller Integration
  • Layouts
    • API
    • Rails Controller Integration
Powered by GitBook
On this page
  • Installation
  • Matestack folder
  • Controller setup
  • Update
  • Ruby Gem

Was this helpful?

Edit on GitHub
  1. Getting started

Installation & Update

Installation

Add 'matestack-ui-core' to your Gemfile

gem 'matestack-ui-core', '~> 3.0.0'

and run

$ bundle install

Matestack folder

Create a folder called matestack in your app directory. All your Matestack layouts, pages and components will be defined there.

$ mkdir app/matestack

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

class ApplicationController < ActionController::Base
  include Matestack::Ui::Core::Helper
  #...
end

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:

bundle update matestack-ui-core

and then check the installed version:

bundle info matestack-ui-core
PreviousMigrating from 2.x to 3.0NextHello World

Last updated 3 years ago

Was this helpful?