Forum: Ruby on Rails textarea clear in RJS stopped working with 2.1.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
dino d. (Guest)
on 2008-12-19 14:17
(Received via mailing list)
Hi - I have an RJS that says

page["textarea_id"].clear that works fine with rails 2.0.2 but is
broken with 2.1.1  - I get an error message:

ActionView::TemplateError (undefined method `[]' for
#<Enumerable::Enumerator:0x2b31d31cc598>)

So, how do I clear a text_area now?  Also, is there a reference for
page somewhere?

Thanks,
Dino
This topic is locked and can not be replied to.