Skip to content

Can't access CE, #52

Closed
corck opened this Issue Jan 28, 2012 · 7 comments

3 participants

@corck
corck commented Jan 28, 2012

I've installed CE (rails3) inside my existing app and added following to my routes.rb

mount CommunityEngine::Engine => "/ce"

rake routes shows following:

rake routes | grep community
      community_engine        /ce                          {:to=>CommunityEngine::Engine}

However accessing this url results in an routing error

No route matches [GET] "/ce"
@mdudda
mdudda commented Jan 30, 2012

Try
mount CommunityEngine::Engine => "/"

instead of

mount CommunityEngine::Engine => "/ce"

@corck
corck commented Jan 30, 2012

I tried "/" at first but resulted in the same error. Not sure where's the best place to start debugging

@mdudda
mdudda commented Jan 30, 2012

How did you install CEonRails3 in your app?
Can you give me an exact step by step guide of what you've done?

@corck
corck commented Jan 30, 2012

I ollowed the install instructions

added CE to my Gemfile

gem 'community_engine', :branch => 'rails3', :git => "https://github.com/bborn/communityengine.git"

Then I ran

bundle install --binstubs
rake community_engine:install:migrations

I had to modify some migrations as I already had some existing tables/models.
Then I ran

rake db:migrate

Next I added a new config/application_config.rb

configatron.community_name = "Breadcrumbs"

And I added to routes.rb

mount CommunityEngine::Engine => "/"

I also renamed my existing application.html.rb

@bborn
Owner
bborn commented Jan 31, 2012

Do you have an existing controller action that maps to '/'?

@corck
corck commented Jan 31, 2012

I had, but I disabled it.

If I try to access /forums I get the same routing error, but from the logs, I can see that its loading CE in the stack
http://pastie.org/private/ll32qtit5ml9wz2wcfsnsw

If I'll access / I only get a plain routing error
http://pastie.org/private/2zwr2lkjb3wxupvtjvinaw

rake routes shows me the correct mapping (I think)

 home        /                                                                                  {:controller=>"base", :action=>"site_index"}
@corck
corck commented Feb 5, 2012

Found out what the cause of this error was. I was using the routing_filter gem, after removing it its now routing correctly.

@corck corck closed this Feb 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.