KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
A few months ago, I followed this tutorial . Everything worked in Rails 3.0.X, but in Rails 3.1 RC, I get this error: undefined method `gsub' for #<ActionDispatch::Flash::FlashHash:0x00000108338f20> Has anything changed in Rails 3.1 RC with the flash object? It seems the problem is with this line: <%= escape_javascript(flash.delete(:notice)) %> Full trace: actionpack (3.1.0.rc1) lib/action_view/helpers/javascript_helper.rb:21:in `escape_javascript' app/views/likes/create.js.erb:4:in `_app_views_likes_create_js_erb___2491329848991146022_2217047840' actionpack (3.1.0.rc1) lib/action_view/template.rb:144:in `block in render' activesupport (3.1.0.rc1) lib/active_support/notifications.rb:57:in `instrument' actionpack (3.1.0.rc1) lib/action_view/template.rb:142:in `render' actionpack (3.1.0.rc1) lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' actionpack (3.1.0.rc1) lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' activesupport (3.1.0.rc1) lib/active_support/notifications.rb:55:in `block in instrument' activesupport (3.1.0.rc1) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (3.1.0.rc1) lib/active_support/notifications.rb:55:in `instrument' actionpack (3.1.0.rc1) lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' actionpack (3.1.0.rc1) lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' actionpack (3.1.0.rc1) lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' actionpack (3.1.0.rc1) lib/action_view/renderer/template_renderer.rb:38:in `render_template' actionpack (3.1.0.rc1) lib/action_view/renderer/template_renderer.rb:12:in `block in render' actionpack (3.1.0.rc1) lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' actionpack (3.
Tags (comma-separated)
Save Edits
Cancel