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 (flash.delete(:notice))
is an array....??
Any suggestion??
Thanks,
bogumbiker
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---