title: Text_field_tag default value if params are empty?
body: <p>I want my <code>text_field_tag</code> to have the current date as a default value if the params for params[:date] is empty, here is my code at the moment:</p>
  
  <pre><code>&lt;%= text_field_tag :end, params[:end]  %&gt;
  </code></pre>
  
  <p>i want somthing like: <code>&lt;%= text_field_tag :end, if params[:end] then use this value else show current date  %&gt;</code></p>
  
  <p>thank you</p>