Link_to_remote issue in edge rails

Hi,

I have the following link_to_remote function

<%=link_to_remote ‘up’, :url => {:controller => ‘maintain_votes’,
:action => ‘blog_comments_vote’, :id => blog_comments_show.id, :vote =>
‘true’ }%> |

which generates this code:
up

As href contains # and not the url, this breaks when javascript is not
enabled, does anyone know of a way to fix this when using edge rails?

thanks

anyone got any suggestions about this?

adam wrote:

Hi,

I have the following link_to_remote function

<%=link_to_remote ‘up’, :url => {:controller => ‘maintain_votes’,
:action => ‘blog_comments_vote’, :id => blog_comments_show.id, :vote =>
‘true’ }%> |

which generates this code:
up

As href contains # and not the url, this breaks when javascript is not
enabled, does anyone know of a way to fix this when using edge rails?

It’s not an Edge Rails issue… it’s just the nature of
link_to_remote. One solution would be to pass the same url options to
the html_options=>{:href=>…}.