Mount the OpenFest engine to the cfp subdomain

This commit is contained in:
Petko Bordjukov 2015-07-19 16:44:42 +03:00 committed by Andrew Radev
parent c0c4057850
commit a4c324aeaf
3 changed files with 12 additions and 1 deletions

View File

@ -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'

View File

@ -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

View File

@ -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'