Paul Alexander
Not a member
Paul Alexander's latest activity
Wednesday, March 30 2011
6655
String.to_json creates invalid JSON
was updated
in Ruby on Rails
-
Paul Alexander commented at 11:08 PMRechecking my logic
'"'.to_jsonshould =='"\""'. Not sure where the "e; thing is coming from. Must be from another gem. -
Paul Alexander commented at 11:06 PMSorry...forgot this was markdown
# rails new sample # cd sample # rails console> '"'.to_json # => "\"\\\"\"" > '"'.to_json == '\"' ... -
Paul Alexander commented at 11:04 PM...worked out a sample
rails new sample
cd sample
rails console
'"'.to_json # => ""\""" '"'.to_json == '"' # => false
-
Paul Alexander commented at 10:52 PMSure...but I' not sure how to prep one. I have my own application with specs and tests and I can repeatedly produce this result...is there a standard way of sub...
-
Paul Alexander created the ticket at 8:46 PM'"Now is the time..."'.to_jsonshould return
'"e;Now is the time..."e;'but instead includes additional escapes
"\"e;Now is the time...\"e;"
Wednesday, February 23 2011
-
- Importance changed from to
Plugin available at https://rubygems.org/gems/whiny-mass-assignment