Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ rails console
- Loading development environment (Rails 3.2.11)
- irb(main):001:0> html_escape({:a=>1, :b=>"my str"})
- NoMethodError: undefined method `html_escape' for main:Object
- helper.send(:html_escape, '123')
- helper.pluralize 3, 'user'
- include ERB::Util
- > helper.send(:html_escape, '{ a: 1, b: "my str" }')
- "{ a: 1, b: "my str" }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement