Integration w/ hobo / application_controller.rb glitch

0 views
Skip to first unread message

Me

unread,
Nov 3, 2009, 12:28:02 PM11/3/09
to CommunityEngine
Greetings. First post: I'm a total noob. I did my best to go
through the docs and mailing list. I'm trying to integrate CE with a
blank hobo app. [http://hobocentral.net]

If I leave application_controller.rb in my hobo app with the following
declaration:

class ApplicationController < BaseController

I get the following error message:
Constant BaseController from base_controller.rb not found

If I remove the application_controller.rb file from my hobo app and
use the same declaration in the CE file:
class ApplicationController < BaseController

I get: Constant ApplicationController from application_controller.rb
not found

Beyond this current issue [pls help!], I'm trying to figure out the
bigger picture.

I really like the standard hobo user model [class hobo_user_model].
At the same time, the same functionality exists within CE. I also
like that Authlogic is coming next. I have no problem using the CE
login and [fat] user model. Also, hobo extends controllers [class
hobo_controller], providing simple, restful controllers, which is
awesome. The part that I really want is the view layer markup,
DRYML. This last part is for the hobo mailing list to answer --
someone has already asked for better engine support for mixing in non-
DRYML views.

Can anyone advise me on how to proceed? My end goal is to get the
rapid productivity of hobo while avoiding "re-inventing" the
functionality that CE provides. In the end, I want a common look and
feel and one user model.

Thanks in advance for the help!
Paul

Jim Ruther Nill

unread,
Nov 3, 2009, 8:22:00 PM11/3/09
to communi...@googlegroups.com
I think it should be the same way around.

All controllers inherit from base_controller. And the base_controller inherit from application_controller.
I haven't tried hobo yet but if you want to use the functionalities used by CE inside the base_controller, change your controllers to inherit base_controller.
--
"We do not believe in ourselves until someone reveals that deep inside us is valuable, worth listening to, worthy of our trust, sacred to our touch." - E. E. Cummings
Reply all
Reply to author
Forward
0 new messages