Params not parsed correctly from url from observe_field, (only occurs on new server environment)

Greetings :slight_smile:

Anyone see anything obvious or know of any occurrences of this kind of
issue.

In the process of testing deployment to a new hosting environment we
found this issue.

this operation works on current production servers
and on all development machines, so we are kind stumped why the params
of getting messed up.

Config has been replicated from our existing setup.

this field observer is rendering correctly

<%= business_image_chooser(100, 100, ā€œChoose imageā€, :id =>
ā€˜mini_job_ad_logo_upload’, :callback_function =>
ā€œselect_mini_ad_logoā€) %>
<%= observe_field(ā€œmini_job_ad_logo_idā€, :frequency => 1, :url =>
{ :action => :update_mini_ad_logo},
:with => ā€œā€˜logo_id=’ + escape($(ā€˜mini_job_ad_logo_id’).value) +
ā€˜&position_profile_id=’ + escape($(ā€˜position_profile_id’).value)ā€) %>
<% end %>

CDATA[\nnew Form.Element.Observer(ā€˜mini_job_ad_logo_id’

, 1, function(element, value) {new Ajax.Request(’/business/positions/
job_ad/update_mini_ad_logo’, {asynchronous

:true, evalScripts:true, parameters:ā€˜logo_id=’ + escape($
(ā€˜mini_job_ad_logo_id’).value) + '&position_profile_id

=’ + escape($(ā€˜position_profile_id’).value)})})\n//]]

but when the observer submits its ajax request
the params end up being parsed out incorrectly

Parameters: {ā€œposition_profile_idā€=>ā€œ95ā€, ā€œactionā€=>ā€œjob_adā€,
ā€œidā€=>ā€œupdate_mini_ad_logoā€, ā€œcontrollerā€=>ā€œbusiness/positionsā€,
ā€œlogo_idā€=>ā€œ561ā€}

they should be

Parameters: {ā€œposition_profile_idā€=>ā€œ95ā€,
ā€œactionā€=>ā€œupdate_mini_ad_logoā€, ā€œcontrollerā€=>ā€œbusiness/positions/
job_adā€, ā€œlogo_idā€=>ā€œ561ā€}

so it ends up submitting to the wrong controller thus we get

ActionController::UnknownAction (No action responded to job_ad):

here are the routes that deals with this section

map.resource :business do |business|
business.resources :positions, :controller => ā€˜business/
positions’, :collection => {:getting_started => :get, :list
=> :get}, :member => {:close => :put, :extend_position => :put} do |
positions|
positions.resource :details, :controller => ā€˜business/positions/
details’
positions.resource :hiring_details, :controller => ā€˜business/
positions/hiring_details’
positions.resource :applicant_profile, :controller => ā€˜business/
positions/applicant_profile’
positions.resource :package_preferences, :controller =>
ā€˜business/positions/package_preferences’
positions.resource :working_details, :controller => ā€˜business/
positions/working_details’
positions.resource :training_development_details, :controller
=> ā€˜business/positions/training_development_details’
positions.resource :job_ad, :controller => ā€˜business/positions/
job_ad’
positions.resource :posting, :controller => ā€˜business/positions/
posting’
positions.resource :management, :controller => ā€˜business/
positions/management’
positions.resources :job_applications, :controller => ā€˜business/
positions/job_applications’
end

The sysadmin and I have been through all the configs and they are
identical.

The error occurs when going directly to one of the mongrels so i
believe that rules out any possible apache issues

hope i have been detailed enough here

Cheers
Steven

/************************************************/
Steven H.
Programmer, Web D., IT Consultant
Composer, Producer, Performer, DJ
p. 0437 541 276
e. [email protected]
/************************************************/