button_to_remote problem on 2.3.2

Sorry about the previous aborted post.. Here is the full post.

I have a link_to_remote call that works as expected (using Rails 2.3.2):

<%= link_to_remote "-", { :url => { :action => :remove_from_cart, :id =>
cart_item.product} }, { :href => url_for(:action => :remove_from_cart,
:id => cart_item.product) } %>

It fallsback correctly when javascript is not enabled.

However, substituting with button_to_remote, does not behave correctly:

<%= button_to_remote "-", { :url => { :action => :remove_from_cart, :id
=> cart_item.product} }, { :href => url_for(:action =>
:remove_from_cart, :id => cart_item.product) } %>

With javascript enabled it works fine. But if javascript disabled, the
fallback :href url is not followed. I.e. it does not work.

Has anybody encountered this problem. Aren't both meant to have exactly
the same options?

Thanks for any suggestions.

Sorry about the previous aborted post.. Here is the full post.

I have a link_to_remote call that works as expected (using Rails 2.3.2):

<%= link_to_remote "-", { :url => { :action => :remove_from_cart, :id =>
cart_item.product} }, { :href => url_for(:action => :remove_from_cart,
:id => cart_item.product) } %>

It fallsback correctly when javascript is not enabled.

However, substituting with button_to_remote, does not behave correctly:

<%= button_to_remote "-", { :url => { :action => :remove_from_cart, :id
=> cart_item.product} }, { :href => url_for(:action =>
:remove_from_cart, :id => cart_item.product) } %>

With javascript enabled it works fine. But if javascript disabled, the
fallback :href url is not followed. I.e. it does not work.

Have you looked at the generated html to see what might be amiss?

Fred

Definetely it won't work, just because standalone buttons should not
do anything when javascript is disabled. That's by design.

Dmitry