Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

respond_to rails 2.3.2 broken

#2354

guys, after i upgraded my project from rails 2.2.2 to 2.3.2 the form_remote_tag i use to update a div stopped to work in some web browsers (it only works on firefox now - no ie7, ie8, chrome or opera) it continues to send the request and receives the response but the div's contents doesn't change. when i submit the form the values change correctly.

view:

<%= render(:partial => "telefone_do_clientes", :object => @telefone_do_clientes) %>

[...] <% form_remote_tag :url => { :action => :adiciona_telefone } do %> <%= text_field "telefone", "telefone", :class => "valor" %>
<%= submit_tag "Adicionar Telefone" %>

<% end %>

controller: def adiciona_telefone [...]

respond_to { |format| format.js }

end

i used respond_to this way since 2.0.x and it worked fine, i read that the new 2.3 version changed a lot of this method, can you verify this? when i force version 2.2.2 on my env conf file, it works! thanks

Reported by Frederico Hahn Pesenti · March 26th, 2009 @ 09:43 PM

State: invalid
Milestone: 3.x
Assigned to: nobody
Importance: Low

Activity

  1. Frederico Hahn Pesenti
  2. Frederico Hahn Pesenti
  3. Nextpulse
    Nextpulse

    I am having the same issue.
    Port from 2.2 to 2.3.

    I am seeing very different output from the same code.
    Investigating further.

    May 14th, 2009 @ 01:41 AM

  4. Martin Schubert
    Martin Schubert

    same problem here! ajax file uploads using attachment_fu and respond_to parent seems to be broken somehow.

    as far as i investigated the situation for me:
    i use the :format => "js" option in my form_for :url definition, but rails doesnt seem to consider the request as javascript.

    any ideas?

    May 20th, 2009 @ 07:24 PM

  5. Martin Schubert
    Martin Schubert

    sorry!!! my previous statement can be considered useless....

    May 20th, 2009 @ 08:34 PM

  6. Dougal
    Dougal

    Frederico - Can you post your adiciona_telefone.rjs?

    May 23rd, 2009 @ 02:25 PM

  7. Frederico Hahn Pesenti
    Frederico Hahn Pesenti

    Dougal,
    it's already here... in the post attachments, have you found it?

    May 25th, 2009 @ 12:08 PM

  8. Frederico Hahn Pesenti
    Frederico Hahn Pesenti

    Guys,
    the problem was solved when I turned to Ruby 1.8.7, I was using 1.8.6
    :D

    July 1st, 2009 @ 10:03 PM

  9. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  10. Ryan Bigg
  11. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid

    Frederico, I'm closing the ticket since you said the issue was solved on upgrading to 1.8.7. If the issue was not completely solved feel free to make a comment to re-open the ticket, and I'll do so.

    June 19th, 2010 @ 05:12 PM

  12. Ryan Bigg
    Ryan Bigg
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    November 8th, 2010 @ 01:53 AM