radar/forem — Issue #160: NameError
Author: IvoReis
Created: 2012-02-27 14:57:25+00:00
State: open

hi there, i've installed the forem engine with the social_stream gem but i've got some problems with the views.
when i access the domain.com/forums/ the controller will also render the social_stream views but will throw the NameError because of the non existence of the main_app prefix.
My config/routes.rb look like this :

mount Forem::Engine, :at => "/forums"
devise_for :users, :controllers => {:omniauth_callbacks => 'omniauth_callbacks'}

and my routes:

root / forem/forums#index
subscribe_forum_topic GET /forums/:forum_id/topics/:id/subscribe(.:format) forem/topics#subscribe
unsubscribe_forum_topic GET /forums/:forum_id/topics/:id/unsubscribe(.:format) forem/topics#unsubscribe
forum_topics GET /forums/:forum_id/topics(.:format) forem/topics#index
POST /forums/:forum_id/topics(.:format) forem/topics#create
new_forum_topic GET /forums/:forum_id/topics/new(.:format) forem/topics#new
edit_forum_topic GET /forums/:forum_id/topics/:id/edit(.:format) forem/topics#edit
forum_topic GET /forums/:forum_id/topics/:id(.:format) forem/topics#show
PUT /forums/:forum_id/topics/:id(.:format) forem/topics#update
DELETE /forums/:forum_id/topics/:id(.:format) forem/topics#destroy
forums GET /forums(.:format) forem/forums#index
forum GET /forums/:id(.:format) forem/forums#show

Is there a way to fix this? Anyone had a similar problem?

Thank you.