Yes, if I remove the helper, this is the url (i.e. the same):
http://<server>/products?association=parallel_products&parent_scaffold=products&product_id=23
And this is from Firebug:
<a id="as_products-index-parallel_products-23-link" class="index
as_action" data-remote="true" data-position="after" data-
action="index" href="/products?
association=parallel_products&parent_scaffold=products&product_id=23">link
text</a>
I have added "id" as I found that to be a difference:
link_to(link_text, {:association => "parallel_products",
:parent_scaffold => "products", :product_id =>
record.id}, :class =>
'as_action',
:id => "as_products-index-parallel_products-#{
record.id}-link",
:remote => true, :data => {:position => :after, :action => 'index'})
I did not add "class=index" even that is also a difference.
So, from Firebug I get this link with the helper link_to (works):
<a id="as_products-index-parallel_products-23-link" class="as_action"
data-remote="true" data-position="after" data-action="index" href="/
products?
association=parallel_products&parent_scaffold=products&product_id=23">link
text</a>
And, this link after first click (does not work):
<a id="as_products-index-parallel_products-23-link" class="as_action"
data-remote="true" data-position="after" data-action="index" href="/
products/23/row?
association=parallel_products&parent_scaffold=products&product_id=23">link
text</a>
Br,
Jonas