title: Way to return True/False with rails api?
body: <p>i need to create a method, which gets called by a local application with two parameters. how can i return true or false then? with xml? my method looks like this:</p>
  
  <pre><code>def check_license
    app_id = params[:id]
    app_sn = params[:sn]
  
    @license = License.find_by_id(app_id)
  
    respond_to do |format|
      if @license.app_serial == app_sn
        # should return true here
     else
       # should return false here
     end
    end
  end
  </code></pre>
  
  <p>thanks in advance!</p>