Yes; this is actually a problem with CE that needs to be addressed. Currently CE actually mounts to '/' automatically. If you look at CE's routes.rb, at the top it uses the Rails.app routes:
Rails.application.routes.draw do When it really should be using: CommunityEngine::Engine.draw do That would make the Engine truly mountable so you could put it at '/ce' or whatever). The problem is, if we were to do that, all the CE named routes would need to be accessed through a 'community_engine' helper (i.e. 'community_engine.users_path' instead of just 'users_path'). In the long run, that's probably the right approach, but I just haven't done it since it'll mean a ton of changes to the rest of the CE app (controllers, views, etc.) Hope that makes sense; feel free to take a stab at fixing and send a pull request. Thanks, *Bruno* On Sun, Dec 4, 2011 at 9:12 PM, Dimas <dsnezh...@gmail.com> wrote: > Hi List, > > I am trying to integrate CE into an existing app. I have been > unsuccessful mounting rails3 branch 2.0.0-beta2 CE on anything but > "/". > > In my routes.rb I have: > > mount CommunityEngine::Engine => "/ce" > > Rake routes properly shows: > community_engine /ce {:to=>CommunityEngine::Engine} > > However navigating to http://site/ce does not find the route. Is it > not possible to mount CommunityEngine elsewhere or what am I doing > wrong? > > > Thank you in advance. > -d. > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To post to this group, send email to communityengine@googlegroups.com. > To unsubscribe from this group, send email to > communityengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/communityengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to communityengine@googlegroups.com. To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.