gritter
gritter copied to clipboard
undefined method 'gsub' when calling add_gritter method
in my app I got request_fr.js.erb, when it tries to execute this: <%= js add_gritter(flash[:notice], :image => :notice, :title => "Pay attention!", :sticky => true) %>
I keep getting this error:
NoMethodError - undefined method gsub' for ["You have received an e-mail notification."]:Array: actionpack (3.2.13) lib/action_view/helpers/javascript_helper.rb:30:in
escape_javascript'
gritter (1.1.0) lib/gritter/helpers.rb:19:in add_gritter' app/views/friendships/request_fr.js.erb:1:in
_app_views_friendships_request_fr_js_erb__426745901290841
9434_2320672660'