From a4c324aeaf5fc933dee3ed3e9e348febd75eae32 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 19 Jul 2015 16:44:42 +0300 Subject: [PATCH] Mount the OpenFest engine to the cfp subdomain --- Gemfile | 2 ++ Gemfile.lock | 7 +++++++ config/routes.rb | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) 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'