I need to test if an instance variable in my controller contains a specific value. I think .include? would be the way to do it but that doesn't seem to work.
My code looks something like this:
@names=Model.find_by_sql("select name from ...")
if @names.include?(params[:name])
...
end
The if statement somehow allways evaluates to true.
Thanks