Rails RJS page.replace_html "div_id_name", :text=> "text goes here" 4

Posted by Joel Jensen Mon, 24 Dec 2007 02:51:55 GMT

I constantly get burned on this one. You cannot render partial :text in an rjs template.

NO ::  page.replace_html "div_id_name", :text=> "text goes here"
YES :: page.replace_html "div_id_name", "text goes here"

My pain your gain.

Trackbacks

Use the following link to trackback from your own site:
http://www.nervetree.com/trackbacks?article_id=rails-rjs-page-replace_html-div_id_name-text-text-goes-here&day=23&month=12&year=2007

Comments

Leave a comment

  1. Michael 11 months later:

    Thanks! This post solved my problem today.

  2. Nathan 11 months later:

    Exactly the issue I was being hampered by. Thanks for posting this!

  3. Dominik over 2 years later:

    Merci beaucoup!

  4. bridesmaid dresses over 2 years later:

    Very useful.

Comments