随笔分类 - 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
阅读全文
摘要:1. 修改: /app/controllers/application_controller.rb文件为如下样子:class ApplicationController :handle_exception def not_found render :template => "shared/not_...
阅读全文
摘要:0. gem install thin //安装1.6.41. 进入到Raisl项目的根目录.2. 在Gemfile中加入一行 gem 'thin'3. 运行 bundle install4. 支持 rails server thin5. 就这些.附: 由于GFW的原因,请使用Taobao镜像做ge...
阅读全文

浙公网安备 33010602011771号