I have some nested resource ‘sku_price_bands’ which are nested inside
‘skus’ which are nested inside ‘music_services’:
map.resources :music_service do |music_service|
music_service.resources :skus do |sku|
Now, i’m trying to use some button_to_remote form helpers and getting an
“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
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?