title: Rails bootstrap and disabled button on condition true
body: <p>In my controller, I have</p>
  
  <pre><code>  def show
         current_scheduled_messages = 5 #(just for example)
         @checkvar = current_scheduled_messages &gt; 3 ? true : false
    end
  </code></pre>
  
  <p>In view</p>
  
  <pre><code>&lt;a class="btn btn-default" data-toggle="modal" data-target="#sms-scheduling-modal" href="#", disabled = @checkvar&gt; Schedule a text message&lt;/a&gt;
  </code></pre>
  
  <p>I want to disable button if @checkvar will be true. I am unable to find right syntax. Please tell me right syntax to do this.
  Reference : <a href="https://stackoverflow.com/questions/11364293/rails-disable-option-in-select-based-on-the-condition">Rails - disable option in select (based on the condition)</a> </p>