- i have put the following rjs in a controller... but it gives me the following error...
TypeError: Element.update is not a function
respond_to do |format|
format.js do
responds_to_parent do
render :update do |page|
page.replace_html 'errorLay', :text => "Page with the same name already exists."
page.show 'errorLay'
page.delay(2) do
page.hide 'errorLay'
end
end
end
end
end
- so how can i get rid of this error...?