Link_to_remote issue after upgrading to rails 1.0


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

:show_layout => ‘false’

Dorian M. wrote:

: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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs