I got some error message when find_by_sql
SecurityError (Insecure: can’t modify hash):
connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/base.rb:431:in find_by_sql’
There’s no another therad in my problem, I have no idea how comes ruby will raise such security exception.
I tried to lower the safelevel in dispatch.fcgi
or add line
$SAFE = 0
but it still doesn’t work.
Any idea how to set the $SAFE (or safelevel) in rails ? Or how to avoid this SecurityError ?