rails get true/false from frontend code example Example: ruby check if true if variable # true else # false