Hi,
I have an rjs file. I only have one controller called called front. I
have views called “new_title.rhtml” and “_new_title.rhtml”
These work
page.replace_html ‘title’, ‘new title’
page.replace_html ‘title’, :partial => ‘new_title’
page.replace_html ‘title’, {:file=>“front/new_title”,
:use_full_path=>true}
but these don’t
page.replace_html ‘title’, :template => ‘front/new_title’
page.replace_html ‘title’, :action => ‘new_title’
page.replace_html ‘title’, :controller => :front, :action => :new_title
This make alert boxes in my browser. “RJS error html has no
properties” and “Element.update(‘title’, null);”
Anyone know why the last three don’t work?
Thanks,
Peter