Skip to content

Aesthetikx/boring_science

Repository files navigation

Boring Science

A mountable Rails blogging engine.

Installation

Add this line to your application's Gemfile:

gem 'boring_science'

And then execute:

$ bundle

Copy migrations to your application and migrate:

$ rails boring_science:install:migrations
$ rails db:migrate

Usage

Add a blog to your applications routes:

# 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):

# 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.

About

A mountable Rails blogging engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published