Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aesthetikx/boring_science
A mountable Rails blogging engine.
https://github.com/aesthetikx/boring_science
blogging blogging-engine rails
Last synced: about 2 months ago
JSON representation
A mountable Rails blogging engine.
- Host: GitHub
- URL: https://github.com/aesthetikx/boring_science
- Owner: Aesthetikx
- License: mit
- Created: 2020-03-30T15:04:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T20:31:33.000Z (8 months ago)
- Last Synced: 2024-05-16T07:37:58.675Z (8 months ago)
- Topics: blogging, blogging-engine, rails
- Language: Ruby
- Size: 166 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Boring Science
A mountable Rails blogging engine.
## Installation
Add this line to your application's Gemfile:```ruby
gem 'boring_science'
```And then execute:
```bash
$ bundle
```Copy migrations to your application and migrate:
```bash
$ rails boring_science:install:migrations
$ rails db:migrate
```## Usage
Add a blog to your applications routes:
```ruby
# config/routes.rb
Rails.application.routes.draw do# ...
# Default Blog
mount BoringScience.blog, at: '/blog'# Second Blog
mount BoringScience.blog, at: '/other',
as: :other_blog,
options: { title: 'Other Blog', blog: 'other' }
end
```Define a blogging user (can be nil for read only access):
```ruby
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base# ...
def boring_science_user
current_user
end
end
```## Contributing
Pull requests welcome.## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).