# Link\_to\_remote issue in edge rails

**URL:** <https://www.ruby-forum.com/t/link-to-remote-issue-in-edge-rails/103481>\
**Category:** Rails\
**Created:** [May 6, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/link-to-remote-issue-in-edge-rails/103481 "2007-05-06T21:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 6, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/link-to-remote-issue-in-edge-rails/103481/1 "2007-05-06T21:27:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 7, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/link-to-remote-issue-in-edge-rails/103481/2 "2007-05-07T13:48:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 8, 2007, 6:45am UTC](https://www.ruby-forum.com/t/link-to-remote-issue-in-edge-rails/103481/3 "2007-05-08T06:45:42Z")

</div>

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=\>…}.
