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]
/************************************************/