https://github.com/aesthetikx/boring_science
A mountable Rails blogging engine.
https://github.com/aesthetikx/boring_science
blogging blogging-engine rails
Last synced: about 1 month 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T23:45:21.000Z (almost 2 years ago)
- Last Synced: 2025-02-24T04:12:42.641Z (over 1 year ago)
- Topics: blogging, blogging-engine, rails
- Language: Ruby
- Size: 173 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
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).