ruby 不使用simple_form的例子,加个datepicker

来源:互联网 发布:万网已备案未注册域名 编辑:程序博客网 时间:2024/05/29 15:12

<!-- 不使用simple_form 的例子... -->
  <div class="form-group tel optional ">
  <label class="optional control-label" >发布时间</label>
  <input type='text'
  class="required form-control "
  id='scenic_spot_published_at'
  data-validation="required"
  name="scenic_spot[published_at]"
  <% if @scenic_spot.published_at.present? %>
  value='<%= @scenic_spot.published_at.strftime('%Y-%m-%d')     %>'
  <% end %>
  />
  </div>

0 0