エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Relative Timestamps in Rails | Brandon Hilkert
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Relative Timestamps in Rails | Brandon Hilkert
Facebook’s news feed popularized the relative timestamp format of “X hours ago”. For good reason ... Facebook’s news feed popularized the relative timestamp format of “X hours ago”. For good reason too…why print an absolute timestamp so that people have to do the relative calculation in their head? It’s one less step for the user, and to be fair, pretty easy to implement. Rails helpers to the rescue Rails has a view helper aptly named time_ago_in_words. If you use the created_at attribute from a