datetime_fieldに「今月の一日の0時0分」のデフォルト値をつけたいのですが、どうすればよいでしょうか?
haml
1= form_with url:article_path, local: true do |f| 2 = f.text_field :title, html:"required" 3 = f.text_field :content 4 = f.datetime_field :date 5 6 = f.submit "送信"
回答2件
あなたの回答
tips
プレビュー
datetime_fieldに「今月の一日の0時0分」のデフォルト値をつけたいのですが、どうすればよいでしょうか?
haml
1= form_with url:article_path, local: true do |f| 2 = f.text_field :title, html:"required" 3 = f.text_field :content 4 = f.datetime_field :date 5 6 = f.submit "送信"
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/02/10 03:28
2021/02/10 07:44