https://github.com/blueberryapps/blueberry_cms
Rails engine with pages
https://github.com/blueberryapps/blueberry_cms
rails rails-engine ruby
Last synced: 2 months ago
JSON representation
Rails engine with pages
- Host: GitHub
- URL: https://github.com/blueberryapps/blueberry_cms
- Owner: blueberryapps
- License: mit
- Created: 2017-01-12T15:25:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T02:01:50.000Z (over 3 years ago)
- Last Synced: 2026-01-14T09:28:10.612Z (6 months ago)
- Topics: rails, rails-engine, ruby
- Language: HTML
- Size: 180 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# BlueberryCMS
Short description and motivation.
## Usage
How to use my plugin.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'blueberry_cms'
```
Add this line to your application's sass:
```sass
@import blueberry_cms
```
Add this line to your application's coffeescript:
```coffee
#= require blueberry_cms
```
And then execute:
```bash
$ bundle
```
Or install it yourself as:
```bash
$ gem install blueberry_cms
```
## BlueberryCMS::Page custom fields
```ruby
# config/initializers/blueberry_cms.rb
module BreadcrumbLeft
extend ActiveSupport::Concern
included do
field :breadcrumb_left, type: Boolean, default: false
end
end
ActiveSupport::Reloader.to_prepare do
BlueberryCMS::Page.send(:include, BreadcrumbLeft)
end
```
```slim
# app/views/blueberry_cms/admin/pages/_custom_fields.html.slim
= f.input :breadcrumb_left
```
## Contributing
Contribution directions go here.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).