try to add <%= javascript_include_tag :defaults %> in your layout file
On Mar 30, 12:31 am, ES <[email protected]> wrote: > I followed this railscast to add "complex" functionality to a form. I > added the ability to click a link to add an element to an object form > and a link to remove it. > > http://railscasts.com/episodes/74-complex-forms-part-2 > > However I am getting this error when I click "add element" > > RJS error: > > TypeError: Element.insert is not a function > > and then > > Element.insert("docs", { bottom: "<div class=\"doc\">\n\n > Doc: <input .....etc -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

