gritter icon indicating copy to clipboard operation
gritter copied to clipboard

undefined method 'gsub' when calling add_gritter method

Open undersky0 opened this issue 10 years ago • 0 comments

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:inescape_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'

undersky0 avatar Sep 04 '14 14:09 undersky0