title: set "required" to text_field by rails view to validation on client side
body: <p>In my rails partial (_form.html.erb) I wrote this: </p>
  
  <pre><code>&lt;%= f.text_field :title, required: true %&gt;
  </code></pre>
  
  <p>The generated html is:</p>
  
  <pre><code>&lt;input required="required" type="text" name="task[title]" id="task_title"&gt;
  </code></pre>
  
  <p>It works fine, but I want this:</p>
  
  <pre><code>&lt;input type="text" name="task[title]" id="task_title" required&gt;
  </code></pre>
  
  <p>How to set just 'required' into tag?</p>