I have a Rails application and I\'m using jQuery to query my search view in the background. There are fields q (search term), start_date, end
q
start_date
end
I'm surprised no one posted this simple solution. That is if your strings are going to be "true" or "false".
def to_boolean(str) eval(str) end