views:

86

answers:

1

Hi,

Alright this probably is the worst error I have found ever.

I have two projects, both using same code:

Sanitize.clean(string, Sanitize::Config::BASIC)

but one works and another fails.

Problem is similar to this poor guy's post: http://stackoverflow.com/questions/2724342/cant-dup-nilclass-how-to-trace-to-offender

Could anybody help please?

A: 

This will happen if you pass nil into clean() instead of a string. Make sure your string variable is really a string.

jaycode