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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment