Rails RJS page.replace_html "div_id_name", :text=> "text goes here" 4
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
Thanks! This post solved my problem today.
Exactly the issue I was being hampered by. Thanks for posting this!
Merci beaucoup!
Very useful.