title: How to send false/true value using json using Ruby ( for jQuery validation )?
body: <p>I have such problem: I'm checking user email and can't tell validator that value is valid or not.</p>
  
  <p>I have such action:</p>
  
  <pre><code>def checkemail
   respond_to do |format|
   format.jsonr do
    if User.where(email: params[:email]).exists? 
      render :json =&gt; {
          :status  =&gt; :false,
          }.to_json
     else
       render :json =&gt; {
          :status  =&gt; :true,
          }.to_json
       end
      end
    end
  end  
  </code></pre>
  
  <p>here is jQuery:</p>
  
  <pre><code>    $(".sign_up").validate({
      rules: {
           "user[email]": {
            remote: {
              url: "http://127.0.0.1:3000/checkemail.jsonr",
              type: "get",
              data: {
                email: function() { return $("#email").val(); }
              }
            }
          }
      })
  </code></pre>
  
  <p>Here is result from console:</p>
  
  <pre><code>    Processing by EditUserController#checkemail as JSONR
      Parameters: {"user"=&gt;{"email"=&gt;"use@mail.com"}, "email"=&gt;"use@mail.com"}
      ←[1m←[36mUser Exists (0.0ms)←[0m  ←[1mSELECT 1 FROM "users" WHERE "users"."email" = 
     'use@mail.com' LIMIT 1←[0m
  </code></pre>
  
  <p>So the validation isn't passing, but should.         </p>
  
  <p>Also tried to pass page status code, but failed.</p>
  
  <p>Can someone suggest where is my error ?</p>