hey all
I have some nested resource ‘sku_price_bands’ which are nested inside
‘skus’ which are nested inside ‘music_services’:
in routes.rb:
map.resources :music_service do |music_service|
music_service.resources :skus do |sku|
sku.resources :sku_price_bands
end
end
Now, i’m trying to use some button_to_remote form helpers and getting an
error like
“index 115225 out of string”
Here’s an example of an exploding helper:
<%= button_to_remote “Delete this sku”,
music_service_sku_path(@music_service, sku), :method => :delete %>
I have a skus_controller (the usual restful controller), with an update
action which expects to get :music_service_id, and i have the
appropriate route set up, i can see it in rake routes:
music_service_sku GET /music_service/:music_service_id/skus/:id
{:action=>“show”, :controller=>“skus”}
PUT /music_service/:music_service_id/skus/:id
{:action=>“update”, :controller=>“skus”}
DELETE /music_service/:music_service_id/skus/:id
{:action=>“destroy”, :controller=>“skus”}
There’s nothing funny going on with @music_service and sku - they are
both defined and point to some appropriate instances - i can see this by
inspecting them on the page and logging the results. They all have the
default to_param method from AR:Base.
It’s always the same ‘11525’ number that shows up in the exception.
I’m out of ideas - can anyone help?
max