Customer.find(:all, :select => 'id', :order => 'updated_at DESC', :readonly => true, :conditions => { :status_id => Customer.id_for_status(params[:id].to_sym) }, :offset => offset, :limit => 30).collect(&:id)
以上是我的查询,因为我收到了类似的警告
Symbol conversion from unsafe string (parameter value) near line 33: params[:id].to_sym
这是拒绝服务的警告。有人知道如何解决此警告吗?
提前致谢