rails
冰凌花花
欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.
展开
-
rails hirefire-resource gem
https://help.hirefire.io/article/54-job-queue-ruby-rackhttps://github.com/hirefire/hirefire-resourceThis library provides middleware which you can add to your stack, exposing an HTTP GET end...原创 2019-10-15 09:42:20 · 105 阅读 · 0 评论 -
Rails Array method second/third/second_to_last
http://api.rubyonrails.org/classes/Array.html#method-i-second[27] pry(main)> list = ["a", "b", "c", "d"]=> ["a", "b", "c", "d"][28] pry(main)> list.first=> "a"[29] pry(main)> list.second=原创 2016-12-21 11:41:31 · 346 阅读 · 0 评论 -
Rails 找不到Settings
需要添加gem, gem rails_config原创 2016-03-18 18:09:29 · 619 阅读 · 1 评论 -
OpenSSL Cipher 加密解密 Ruby on Rails
最近在做OpenSSL::Cipher.new的优化:application_controller.rb def decrypter(data) key = ENV['ENCRYPTION_KEY'] iv = ENV['ENCRYPTION_IV'] decipher = OpenSSL::Cipher.new('des3') decipher.dec...原创 2019-08-12 09:05:34 · 1051 阅读 · 0 评论