如何为此datetimepicker http://tarruda.github.io/bootstrap-datetimepicker/设置默认时间而不是当前时间?
我有一个存储JSON数据的列.当它处于编辑状态时,我不知道如何显示它.
serialize :value, JSON
= f.fields_for :value do |ff|
.form-group
= ff.label :short
= ff.text_field :short, class: 'form-control'
.form-group
= ff.label :long
= ff.text_field :long, class: 'form-control'
Run Code Online (Sandbox Code Playgroud)