search for: bigbinary

Displaying 2 results from an estimated 2 matches for "bigbinary".

Did you mean: igbinary
2012 Dec 08
0
Security - How to sanizitize JSON?
Hi, I''m on Rails 3.2.8 and one of my apps sends some json to create DB objects. What''s the best way to sanitize json? I found this post claiming that for json we need to escape manually since json_escape is broken: http://blog.bigbinary.com/2012/05/10/xss-and-rails.html I tried using the sanitize gem (https://github.com/rgrove/sanitize/) but when using it on a json string it returns NoMethodError (undefined method `strip'' for #<ActiveSupport::HashWithIndifferentAccess:... Later on I generate json that is presented ra...
2011 Jul 20
4
Setup database on new clone
I''ve just cloned my rails app onto another PC, and I''m having a problem getting the database set up. I''ve tried rake db:migrate, then db:create and also db:reset, but I keep getting an SQLException "no such table". It seems this is due to a line in an initializer which accesses one of my tables. Why do the db:* tasks run the initializers ? Do I need to move