Downloads engine for Refinery CMS.
Protected File Downloads.
- Upload your Files in the Backend
- Assign the Role 'Downloads' to Users
- Only these Users can access the Downloadpage
RefineryCMS version 0.9.8 or later.
Gem Installation using Bundler (The very best way)
Include the latest gem into your Refinery CMS application's Gemfile:
Then type the following at command line inside your Refinery CMS application's root directory:
bundle install rails generate refinerycms_downloads rake db:migrate
Then add the following lines to your ApplicationController in order to redirect Users to the Downloadpage after logging in
# redirect for private users def after_sign_in_path_for(resource) if resource.is_a?(User) && resource.has_role?(:downloads) downloads_url else super end end