Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
File upload for lolita
Ruby HTML CoffeeScript CSS JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config/locales
lib
spec
test_orm
vendor/assets
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
VERSION
lolita-file-upload.gemspec

README.md

Lolita file upload

File upload gem for Lolita.

Instalation

  • gem install lolita-file-upload
  • include in gemfile like this: gem "lolita-file-upload"
  • cd your_project_path
  • rails g lolita_file_upload:install
  • add lolita_gallery as plugin to config/tinymce.yml configuration.
  • run bundle exec rails g lolita:file_upload:install it will create new migration file
  • run bundle exec rake db:migrate db:test:clone to create file tables

Configuration

Gem will not used until any of lolita configuration blocks define tab with type :files. Like this

class Post
  include Lolita::Configuration
  has_many :files, as: :fileable, class_name: 'Lolita::Upload::File'

  lolita do
    tab(:content)
    tab(:files)
  end
end
Something went wrong with that request. Please try again.