Hey Joe, just gave it a try today using this blog posts to install
multiple versions of Ruby in my dev machine

http://tinyurl.com/6ot2kt

Same error pops up locally running the production 1.8.5 version of
Ruby.

- Jose

On Aug 20, 5:45 pm, Jose Fernandez <[EMAIL PROTECTED]>
wrote:
> Thanks Joe, Im gonna give that a try tomorrow, but I still think that
> using a ruby version thats 2 years old + Rails edge doesn't help.
> It's the only thing that varies between environments.
>
> On Aug 20, 5:34 pm, Joe Goggins <[EMAIL PROTECTED]> wrote:
>
> > Jose,
> >   It seems more like a name spaced routing thing to me, having
> > something to do with how routing is done...something to do with a
> > controller Admin::Attempts under app/controller/admin/
> > attempts_controller.rb and the way apache and mongrel do their thing.
> > Not sure what, but different ruby version seems off.  If you did want
> > to test your theory though, it would be pretty simple:
>
> > On your dev machine running 1.8.6:
>
> > 1. compile ruby 1.8.5 from source
> > 2. move the existing 1.8.6 ruby binary (can find where it is on the os
> > by `which ruby`) to another name
> > 3. drop the compiled 1.8.5 version in its place.
> > 4. fire up the rails stack and see what you see.
>
> > To revert to 1.8.6 just rename it back to what it was and move the
> > 1.8.5 one out.
>
> > word,
>
> > -joe
>
> > On Aug 20, 3:08 pm, Jose Fernandez <[EMAIL PROTECTED]>
> > wrote:
>
> > > My dev machine and staging server are both running Ruby 1.8.6, yet the
> > > production server is 1.8.5, thinking this might be the problem...
>
> > > On Aug 20, 2:58 pm, Jose Fernandez <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Hey gang, I'm deploying a Rails app that uses ActiveScaffold, it works
> > > > fine in my local dev machine and our staging server using Ubuntu +
> > > > Passenger.  The problem happens when I deploy the app to our
> > > > production server (Redhat, apache, mongrel clusters).  Some of the
> > > > nested actions are causing ActionController::UnknownAction errors and
> > > > I've tracked it down to a parameter parsing error.
>
> > > > These is the params in the dev log (work fine):
>
> > > > Parameters: {"parent_column"=>"attempts",
> > > > "eid"=>"0d7ff7efc72c93ff8abdaf808a00b44a", "nested"=>"true",
> > > > "action"=>"export_to_csv", "controller"=>"admin/attempts",
> > > > "parent_model"=>"ExamSection"}
>
> > > > And these are the parameters in production:
>
> > > > Parameters: {"parent_column"=>"attempts",
> > > > "eid"=>"e174f7a9b65b7b9ffa665829ccc65e1f", "nested"=>"true",
> > > > "action"=>"attempts", "id"=>"export_to_csv", "controller"=>"admin",
> > > > "parent_model"=>"ExamSection"}
>
> > > > As you can see, in production it looks like the wrong params are
> > > > getting set (action and controller is wrong, also there is an extra ID
> > > > attribute)... any ideas whats going on?
--~--~---------~--~----~------------~-------~--~----~
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