Displaying 1 result from an estimated 1 matches for "notice_ajax".
2009 Sep 04
2
escape_javascript error
Hello,
I am using jQuery for all ajax stuff and recently got following error:
ActionView::TemplateError (private method `gsub'' called for #<Array:
0x2425ae8>) on line #1 of...
and the code where it happens:
$("#notice_ajax").before(''<div id="notice_ajax"><%= escape_javascript
(flash.delete(:notice)) %></div>'').remove();
when I remove ''escape_javascript'' then everything works fine.
It seems that ''gsub'' thinks that its argument (fl...