Questions Recently Asked by kris /users/recently_asked/62 Questions Recently Asked by kris Wed, 07 Jan 2009 11:26:54 -0800 $2.00 - How do you secure Markdown so that it does not allow javascript with rails? ... http://www.guruza.com/question/369/reward-2.00 How do you secure Markdown so that it does not allow javascript with rails? I see guruza does it as this link should popup an alert but does not work here. Fri, 01 Sep 2006 02:05:02 -0700 $3.00 - how to get validates_presence_of to work with non-null float/boolean/integer ... http://www.guruza.com/question/323/reward-3.00 how to get validates_presence_of to work with non-null float/boolean/integer fields? Has anyone figured out a way to get validates_presence_of to work with float, boolean, and integer fields that are defined as non-null in the schema? The problem is, rails intializes these types to the default schema value, which for mysql is never null if the column is not allowed to be null, and as a result they are initialized in the form with a value, and are never null. I found a work around for integers that requires a nasty method override in the ActiveRecord class that sets the default values from the database, but I can not find a solution to do the same for floats because ruby will not let me assign a float to null once it has been initialized with a value. Wed, 16 Aug 2006 16:33:19 -0700 $1.00 - How do I scale a webapplication? http://www.guruza.com/question/77/reward-1.00 How do I scale a webapplication? Mon, 05 Jun 2006 14:12:51 -0700 $5.00 - Is UPS Rate and Service Selection down? http://www.guruza.com/question/71/reward-5.00 Is UPS Rate and Service Selection down? Fri, 02 Jun 2006 13:48:47 -0700