Forum: Ruby on Rails link_to_remote issue after upgrading to rails 1.0

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
dave smylie (Guest)
on 2006-03-15 10:26
(Received via mailing list)

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 =>
=> false,
                                                           :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
suggest this call is still valid and the parameter should be passed.

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

Dave Smylie
Dorian M. (Guest)
on 2006-03-15 23:41
(Received via mailing list)
:show_layout => 'false'
dave smylie (Guest)
on 2006-03-16 09:46
(Received via mailing list)
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 =)
This topic is locked and can not be replied to.