RJS in controller

Posted by Jamal Abdul Nasir on Stack Overflow See other posts from Stack Overflow or by Jamal Abdul Nasir
Published on 2010-06-14T12:59:39Z Indexed on 2010/06/14 13:02 UTC
Read the original article Hit count: 390

Filed under:
|
  • 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...?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rjs