search for: escape_html_entities_in_json

Displaying 5 results from an estimated 5 matches for "escape_html_entities_in_json".

2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
...ers/new_rails_defaults.rb +++ b/src/config/initializers/new_rails_defaults.rb @@ -16,4 +16,8 @@ ActiveSupport.use_standard_json_time_format = true # Don't escape HTML entities in JSON, leave that for the #json_escape helper. # if you're including raw json in an HTML page. -ActiveSupport.escape_html_entities_in_json = false \ No newline at end of file +ActiveSupport.escape_html_entities_in_json = false + +def PGconn.quote_ident(name) + %("#{name}") +end -- 1.6.6.1
2008 Sep 06
6
Configuring custom library
Hi, I''ve added a custom library called lib\AccountSystem like so: "module AccountSystem SINGLE = 1 MULTIPLE = 2 class << self attr_accessor :account_system_type end end" Now I wanna configure AccountSystem.account_system_type=AccountSystem::SINGLE in one app. I used an initializer: config/initializers/account_initialization.rb where I put this line in. I
2010 Oct 10
1
JSON output replacing & with "\u0026 "
Hi, I''m outputting some database objects as static JSON files using a stand along ruby script.rb, that other could run outside of my rails app. When I use this script, the output replaces "&" with "\u0026." If I use the same code to output my JSON files in console, it outputs fine. I imagine there is some gem or something I''m not including in my
2014 Jun 11
0
my webpage does not send emails confimation/notification
...:de # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] # Enable escaping HTML in JSON. config.active_support.escape_html_entities_in_json = true # Use SQL instead of Active Record's schema dumper when creating the database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types # config.active_record.schema_format =...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server