diff --git a/Gemfile b/Gemfile index 6c652c1..3f7fd76 100644 --- a/Gemfile +++ b/Gemfile @@ -49,6 +49,8 @@ gem 'jquery-datatables-rails' gem 'morrisjs-rails' gem 'raphael-rails' +gem 'open_fest', path: 'lib/open_fest' + group :development do gem 'spring' gem 'spring-commands-rspec' diff --git a/Gemfile.lock b/Gemfile.lock index 246eb54..4854ce4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,6 +5,12 @@ GIT specs: yaml_db (0.2.3) +PATH + remote: lib/open_fest + specs: + open_fest (0.0.1) + rails (~> 4.2.3) + GEM remote: https://rubygems.org/ specs: @@ -360,6 +366,7 @@ DEPENDENCIES jquery-rails morrisjs-rails nested_form + open_fest! pg phony_rails pry-rails diff --git a/config/routes.rb b/config/routes.rb index dd4b99c..42b40f7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ Rails.application.routes.draw do - devise_for :users + mount OpenFest::Engine, at: '/', constraints: {subdomain: 'cfp'} + + devise_for :users, path: 'management' namespace :management do root to: 'home#index'