Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.53 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.53 KB

Monologue Image Upload Extension

THIS README IS FOR THE MASTER BRANCH AND IS ONLY COMPATIBLE WITH THE MASTER BRANCH OF MONOLOGUE

Questions? Problems? Documentation?

What does this gem do?

  • This is an extension that adds the image upload feature to monologue using imagemagick

Installation

1. Add the gem to your Gemfile

gem "monologue_image_upload", :git => "[email protected]:msevestre/monologue_image_upload.git"

And run bundle install to fetch the gem and update your 'Gemfile.lock'.

2. Run the required migrations

Run these commands:

  1. $bundle exec rake monologue_image_upload:install:migrations
  2. $bundle exec rake db:create (only if this is a new project)
  3. $bundle exec rake db:migrate

5. Configure Monologue.

This is all done in an initializer file, say config/initializers/monologue.rb.

Monologue.config do |monologue|
  monologue.image_upload.max_picture_size = 2.megabytes
  monologue.image_upload.upload_path = "monologue"
end

Requirements

  • Rails 4 +
  • Database: MySQL & Postgres are supported but other databases might work too.

Authors

Contribute

Fork it, then pull request. Please add tests for your feature or bug fix.