Hi there,
I have two projects, both looking like they use the same version of
ruby, same version of rails, on the same machine. When I run console
within each project, the to_json call returns a different result.
>> ''<a href="#"
onclick="$(this).up(".positioned_promotion_list_item").remove();
return false;">''.to_json
=> "\"\\u003Ca href=\\\"#\\\"
onclick=\\\"$(this).up(\
\u0026quot;.positioned_promotion_list_item\\u0026quot;).remove();
return false;\\\"\\u003E\""
and
>> ''<a href="#"
onclick="$(this).up(".positioned_promotion_list_item").remove();
return false;">''.to_json
=> "\"<a href=\\\"#\\\" onclick=\\\"$
(this).up(".positioned_promotion_list_item").remove();
return false;\\\">\""
Does anyone know what may be causing this?
Cheers,
Tim.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---