<%= render 'special', :url => url_for(:controller => "#{@category.key}_configuration") -%>
<% else -%>
<form onsubmit="$j('#submit_settings').hide();$j('#loading_settings').show();
- $j.ajax({ url:'<%= ApplicationController.root_context-%>/settings/update?category=<%= @category.key -%>&subcategory=<%= @subcategory.key -%>&resource_id=<%= @resource && @resource.id -%>',
+ $j.ajax({ url:'<%= url_for :controller => 'settings', :action => 'update', :category => @category.key, :subcategory => @subcategory.key, :resource_id => (@resource && @resource.id) -%>',
type:'post',
success:function(responseHTML){$j('#properties').text(responseHTML.responseText);$j('#loading_settings').hide();$j('#submit_settings').show()},
data:$j(this).serialize()});