ECM Downloads 2
This version supports rails >= 4.0 and twitter bootstrap 3. For legacy support use ecm_downloads
Installation
Add the gem to your bundle:
# Gemfile
gem 'ecm_downloads2'
Install your bundle:
> bundle install
Generate initializer:
> rails generate ecm:downloads:install
Add migrations:
> rake ecm_downloads_engine:install:migrations
Migrate:
> rake db:migrate
Add the routes:
# config/routes.rb
Ecm::Downloads::Routing.routes(self)
Add the helpers to your application controller:
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
helper Ecm::Downloads::DownloadCategoryHelper
helper Ecm::Downloads::DownloadHelper
...
end
Optional: Generate locale files
You may want to copy the locales to your app:
> rails generate ecm:downloads:locales
Running specs
gem install bundler
bundle
cd spec/dummy && rake db:migrate RAILS_ENV=test && cd ../..
guard
License
This project rocks and uses MIT-LICENSE.