Coder Social home page Coder Social logo

refinerycms-downloads's Introduction

Downloads engine for Refinery CMS.

About

Protected File Downloads.

Key features:

  • Upload your Files in the Backend
  • Assign the Role 'Downloads' to Users
  • Only these Users can access the Downloadpage

Requirements

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:

gem "refinerycms-downloads"

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

refinerycms-downloads's People

Contributors

caplod avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.