You *shouldn't* be copying the entire controllers out of CE. You just need
to override the particular actions you'd like to change.

On Fri, Jan 16, 2009 at 2:05 PM, simplicoder <[email protected]> wrote:

>
> Yes I copied it straight out, no mods or anything.
> The plugin order in environment.rb is what you said to put...
>
> Now the comments_controller is giving me fits.
> I copy it straight out of the plugin to the main app dir... no
> modifications.
>
> Works fine in dev.
> But in production I get this error:
>  NoMethodError in CommentsController#create
> undefined method `controller_name' for nil:NilClass
>
> Try it out with a fresh rails project and CE install... just overwrite
> the comments_controller and see if the same thing doesn't happen for
> you in production mode...
>
> I don't know if it's an engines problem or if production rails is
> ignoring the config.plugins directive or what.
>
> If anyone gets it to work please zip it up and post it somewhere for
> me, so I can diff it, because I'm hella stumped.
>
> Thanks for any help!
>
> On Jan 16, 8:58 am, "Bruno Bornsztein" <[email protected]>
> wrote:
> > Hmm.. this isn't happening to me on my production sites. Anyone else
> seeing
> > this?
> >
> > Looks like line 15 of UsersController is calling
> > AppConfig.default_mce_options, which for some reason is undefined at that
> > time. Might have something to with the plugin's load order.
> >
> > Have you copied the entire UsersController out of CE and put it in your
> own
> > app directory?
> >
> > On Fri, Jan 16, 2009 at 1:42 AM, simplicoder <[email protected]>
> wrote:
> >
> > > So the problem was trying to override users_controller by copying it
> > > out of the plugin into the main app dir.
> >
> > > It seems to have config code that calls AppConfig... and production
> > > mode doesn't like this??
> >
> > > On Jan 16, 12:21 am, simplicoder <[email protected]> wrote:
> > > > I'm using CE v0.10.8 and engines 2.2.2
> >
> > > > I've also tried the master branch...
> > > > -=C=-
> >
> > > > On Jan 15, 7:40 pm, simplicoder <[email protected]> wrote:
> >
> > > > > Hi,
> > > > > I'm having trouble running my CE app in production mode.
> > > > > Dev mode works fine.
> >
> > > > > Please check out this pastie:http://pastie.org/362037
> >
> > > > > When doing a rake:db:migrate in production I get this:
> > > > > rake aborted!
> > > > > undefined method `merge' for nil:NilClass
> > > > >
> /Users/csmos/Projects/community/vendor/plugins/community_engine/app/
> > > > > controllers/users_controller.rb:15
> >
> > > > > It works fine in dev as shown in the pastie.
> >
> > > > > I thought maybe for some reason it wasn't executing the
> engine_config/
> > > > > boot...
> > > > > so I put this at the end of my evironment.rb file...
> >
> > > > > p 'BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH'
> > > > > # Community-engine boot
> > > > > require
> "#{RAILS_ROOT}/vendor/plugins/community_engine/engine_config/
> > > > > boot"
> >
> > > > > the BLAHs get output in the successful dev enviro, but not
> production.
> >
> > > > > I'm stumped, any thoughts are appreciated.
> > > > > Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to