Spina is a CMS built upon the Rails framework. This guide is designed for developers with experience using Ruby on Rails.
To start using Spina CMS simply add the following lines to your Gemfile:
gem 'spina-template'
gem 'spina'
Make sure you run the installer to get started.
rails g spina:install
The installer will help you setup your first user.
Then start rails s
and access your admin panel at /admin
.
Theme configuration changed to:
# config/initializers/themes/default.rb
Spina::Theme.register do |theme|
# Theme config
end
Check out config/initializers/themes/default.rb for an example.
Spina-specific configuration moved from Spina::Engine.config
to just Spina.config
.
Change the following in your initializer:
# config/initializers/spina.rb
Spina::Engine.configure do |config| # OLD
Spina.configure do |config| # NEW
The installer generates a few initializers that contain necessary configuration for Spina.
In the initializers folder there's a new folder named themes
. Inside you will find a configuration file named default.rb
. This file contains all of your theme-specific settings. You can define multiple Page parts, Layout parts, View templates and Custom pages.