I fixed the issue, ActiveScaffold had some conflicts with Resource
Controller. I replaced Resource Controller with Resources controller,
which ActiveScaffold seems okay with. In development, the
ActiveScaffold files were loaded whenever they were needed (with out
class caching). But in production, classes were cached, and Resource
Controller apparently defined classes with the same names, which
ActiveScaffold then tried to use.

-Abraham


On Sep 9, 3:14 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Miércoles, 9 de Septiembre de 2009 06:49:11 Abraham Neben escribió:
>
> > This error turned out to be a problem with enabling
> > config.cache_classes. Setting config.cache_classes = true, I get the
> > nil.sorting error that I don't get when it's false, in development.
>
> > Any ideas?
>
> I don't know, it's working here with rails 2.3.4 and passenger 2.2.5 in
> production mode
>
>
>
>
>
>
>
> > On Sep 8, 3:16 am, "[email protected]"
>
> > <[email protected]> wrote:
> > > Hi,
>
> > > have you tried mongrel in prod mode on your dev system?
>
> > > --
> > > Volker
>
> > > On 7 Sep., 20:24, Abraham Neben <[email protected]> wrote:
> > > > By the way, I'm using Rails 2.3.4
>
> > > > On Sep 7, 12:29 am, Abraham Neben <[email protected]> wrote:
> > > > > My Admin::EventsController uses ActiveScaffold. Works perfectly
> > > > > locally on Mongrel, fails in production with this cryptic error
> > > > > having to do with Passenger. Any ideas?
>
> > > > > Processing Admin::EventsController#index (for 99.23.130.5 at
> > > > > 2009-09-07 03:18:22) [GET]
> > > > >  Parameters: {"action"=>"index", "controller"=>"admin/events"}
>
> > > > > NoMethodError (undefined method `sorting' for nil:NilClass):
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:
> > > > > 207:in `main_loop'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/railz/application_spawner.rb: 378:in
> > > > > `start_request_handler'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/railz/application_spawner.rb: 336:in
> > > > > `handle_spawn_application'
> > > > >  passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/railz/application_spawner.rb: 334:in
> > > > > `handle_spawn_application'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in
> > > > > `__send__'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in
> > > > > `main_loop'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in
> > > > > `start_synchronously'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in
> > > > > `start'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/railz/application_spawner.rb: 213:in `start'
> > > > >  passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in
> > > > > `spawn_rails_application'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/abstract_server_collection.rb: 126:in
> > > > > `lookup_or_add'
> > > > >  passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in
> > > > > `spawn_rails_application'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/abstract_server_collection.rb: 80:in
> > > > > `synchronize'
> > > > >  passenger (2.2.5)
> > > > > lib/phusion_passenger/abstract_server_collection.rb: 79:in
> > > > > `synchronize'
> > > > >  passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in
> > > > > `spawn_rails_application'
> > > > >  passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in
> > > > > `spawn_application'
> > > > >  passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in
> > > > > `handle_spawn_application'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in
> > > > > `__send__'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in
> > > > > `main_loop'
> > > > >  passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in
> > > > > `start_synchronously'
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to