# Link\_to\_remote with Modalbox.show

**URL:** <https://www.ruby-forum.com/t/link-to-remote-with-modalbox-show/167262>\
**Category:** Rails\
**Created:** [May 6, 2009, 6:42am UTC](https://www.ruby-forum.com/t/link-to-remote-with-modalbox-show/167262 "2009-05-06T06:42:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [May 6, 2009, 6:42am UTC](https://www.ruby-forum.com/t/link-to-remote-with-modalbox-show/167262/1 "2009-05-06T06:42:32Z")

</div>

Hi  
In helper I have  
change\_email\_link  
html = []  
html \<\< change\_email\_js(:email =\> @email)  
html \<\< %{  
edit  
}  
html.join  
end  
Now  
def change\_email\_js(options ={})  
%{

}  
end

```
   My problem is This does not popup the modalbox. But when I remove

```

the line  
#{link\_to\_remote ‘Ok’,{},{:class =\> :new\_ui\_blue\_button}} Or change  
this link\_to\_remote to link\_to everything works as expected What might  
be the reason  
Please help

Thanks in advance  
Sijo
