随笔分类 -  Ruby

摘要:require 'time' Time.now.to_i // 单位是秒 Time.parse('2023-09-20 19:18:59.0805643 +0800').to_i // 还是秒 如何输出ms呢? Time.parse('2023-09-20 19:18:59.0805643 +080 阅读全文
posted @ 2023-09-20 20:39 戈_戈 阅读(131) 评论(0) 推荐(0)
摘要:1. 修改: /app/controllers/application_controller.rb文件为如下样子:class ApplicationController :handle_exception def not_found render :template => "shared/not_... 阅读全文
posted @ 2016-01-24 18:22 戈_戈 阅读(175) 评论(0) 推荐(0)
摘要:0. gem install thin //安装1.6.41. 进入到Raisl项目的根目录.2. 在Gemfile中加入一行 gem 'thin'3. 运行 bundle install4. 支持 rails server thin5. 就这些.附: 由于GFW的原因,请使用Taobao镜像做ge... 阅读全文
posted @ 2016-01-19 11:07 戈_戈 阅读(108) 评论(0) 推荐(0)