title: Passing boolean parameters in Ruby on Rails
body: <p>My Ruby on Rails function should receive a boolean parameter, check it and, if it is true, do something.</p>
  
  <pre><code>  def isReady
       if (params[:ready] == true)
              doSomething()
       end
    end
  </code></pre>
  
  <p>However, with the example below we never get inside this if (but it enters the function), probably because the parameter is passed as a string instead of as a boolean. How can I pass boolean parameters properly, or convert them?</p>
  
  <pre><code>curl --data "ready=true" http://example.com/users/isReady
  </code></pre>