0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

time_selectでも日付の設定できるっぽい

0
Posted at

時間だけじゃなく年月日の情報も保持させときたいなーと思っていたんですが

time_select("#{row}", 'start',:default => {:year =>'2010' ,:month => '1' ,:day=>'1',:hour => '10', :minute => '00'})

設定できるんですね。

スクリーンショット 2018-10-26 18.32.01.png

このままform_tagで投げれば時間だけでなく日付も一緒に送れる。
デフォルトだとその日ので設定されるっぽい

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?