Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. $ rails console
  2. Loading development environment (Rails 3.2.11)
  3. irb(main):001:0> html_escape({:a=>1, :b=>"my str"})
  4. NoMethodError: undefined method `html_escape' for main:Object
  5.  
  6. helper.send(:html_escape, '123')
  7. helper.pluralize 3, 'user'
  8.  
  9. include ERB::Util
  10.  
  11. > helper.send(:html_escape, '{ a: 1, b: "my str" }')
  12. "{ a: 1, b: "my str" }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement