# Link\_to\_remote issue after upgrading to rails 1.0

**URL:** <https://www.ruby-forum.com/t/link-to-remote-issue-after-upgrading-to-rails-1-0/54929>\
**Category:** Rails\
**Created:** [March 15, 2006, 9:26am UTC](https://www.ruby-forum.com/t/link-to-remote-issue-after-upgrading-to-rails-1-0/54929 "2006-03-15T09:26:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave\_smylie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dave\_smylie](https://www.ruby-forum.com/u/dave_smylie)\
**Post date:** [March 15, 2006, 9:26am UTC](https://www.ruby-forum.com/t/link-to-remote-issue-after-upgrading-to-rails-1-0/54929/1 "2006-03-15T09:26:42Z")

</div>

Hi

I’ve only recently noticed my notebook was using an old version of rails  
(0.13), and so upgraded it to 1.0 (this is on gentoo linux).

The upgrade has broken some previously working code, and I’ve not been  
able to find a work-around.

Previously the following call:  
\<%= link\_to\_remote(“some string”,  
:update =\> ‘content’,  
:url =\> { :action =\>  
‘show\_pics’,  
:show\_layout  
=\> false,  
:page =\>  
@page}  
) %\>  
would call action show\_pics and params[:show\_layout] would hold the  
value false.

However, now :show\_layout is not passed thru at all. I’m certain it’s  
related to the upgrade as I noticed it broke when i moved a copy of my  
app to my server using rails 1.0. As soon as I upgraded the laptop from  
0.13 to 1.0 the laptop also started behaving the same.

The examples in the api docs at  
[http://rubyonrails.org/api/classes/ActionView/Helpers/JavaScriptHelper.html#M000433](http://rubyonrails.org/api/classes/ActionView/Helpers/JavaScriptHelper.html#M000433)  
suggest this call is still valid and the parameter should be passed.

Am I misunderstanding the docs? Or just plain doin something wrong?

Cheers  
Dave Smylie

---

<div class="post-metadata">

**Author:** ![dave\_smylie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dave\_smylie](https://www.ruby-forum.com/u/dave_smylie)\
**Post date:** [March 15, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/link-to-remote-issue-after-upgrading-to-rails-1-0/54929/2 "2006-03-15T22:41:12Z")

</div>

try:  
:show\_layout =\> ‘false’  
?

---

<div class="post-metadata">

**Author:** ![dave\_smylie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dave\_smylie](https://www.ruby-forum.com/u/dave_smylie)\
**Post date:** [March 16, 2006, 8:46am UTC](https://www.ruby-forum.com/t/link-to-remote-issue-after-upgrading-to-rails-1-0/54929/3 "2006-03-16T08:46:14Z")

</div>

Dorian M. wrote:

> try:  
> :show\_layout =\> ‘false’  
> ?

damn. simple as that. don’t i feel retarded =)  
presumably you can only send text as it’s being passed as part of a url?

thanks =)
