📌  相关文章
📜  如何使用 javascript rails 更改 created_at 格式 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:39.983000             🧑  作者: Mango

代码示例1
You can override the created_at on the corresponding model

class Model < ActiveRecord::Base
  def created_at
    attributes['created_at'].strftime("%m/%d/%Y %H:%M")
  end
end