Add the lato_core gem on your Gemfile
gem 'lato_core'
Install the gem
bundle install
Generate the initializer (Rails 5)
rails lato_core_initialize
Exec migrations
bundle exec rake db:migrate
Now you can start the server and go to the relative url /lato/core
You can access to the admin panel with these data:
- username: lato
- password: password
NB: You must install to work lato property lato_view
The gem lato_core can be configured with the file /config/lato/config.yml.
The config.yml file is created with the "lato_core_initialize" command and contain a list of important settings.
class CustomController < ApplicationController
layout 'lato_layout'
before_action :core_controlUser
end
menu:
products:
name: Products
url: "/admin/products"
icon: arrow-right
position: 1
permission: 0