
rails
it&s me
on the way
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
rails time_ago_in_words翻译
rails time_ago_in_words翻译中文原创 2023-03-08 17:45:33 · 134 阅读 · 0 评论 -
rails https skip ssl
rails https skip ssl verify_mode 四种模式介绍原创 2023-02-01 20:02:51 · 427 阅读 · 1 评论 -
rails haml data-aa-bb属性以及换行
rails haml data-aa-bb属性以及换行原创 2022-12-12 17:38:48 · 163 阅读 · 0 评论 -
rails console打印实例变量
rails console打印实例变量 attr_reader attr_writer attr_accessor instance_variable_get原创 2022-11-15 17:58:21 · 185 阅读 · 0 评论 -
rails 中间表 paginate
rails 中间表 paginate原创 2022-11-03 19:34:27 · 138 阅读 · 0 评论 -
rails rake 传参
rails rake 传参原创 2022-11-01 16:29:19 · 138 阅读 · 0 评论 -
rails hash key from quotes to sym
rails hash key from quotes to sym原创 2022-09-21 16:45:38 · 138 阅读 · 0 评论 -
Rails add link inside flash notice
Rails add link inside flash notice原创 2022-09-07 10:18:57 · 149 阅读 · 0 评论 -
rails在控制台输出sql语句
rails 2 ActiveRecord::Base.connection.instance_variable_set :@logger, Logger.new(STDOUT)>> ActiveRecord::Base.connection.instance_variable_set :@logger, Logger.new(STDOUT)=> #<Logger:0xdeaf620 @progname=nil, @logdev=#<Logger::LogDevice:0.原创 2022-04-25 15:05:33 · 302 阅读 · 0 评论 -
rails uninitialized constant MysqlCompat::MysqlRes
启动报错/vendor/bundle/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant’:NameError: uninitialized constant MysqlCompat::MysqlRes环境ruby 1.8rails 2.3mysql 5.5.68-MariaDBgem -> mysql 2.8.1gem -> acti原创 2022-02-18 18:04:53 · 432 阅读 · 0 评论 -
根据ip判断来源是否为爬虫
Socket.gethostbyname method is deprecated and instead by getnameinfoa = Socket.gethostbyname("66.249.64.119");res = Socket.gethostbyaddr(a[3], a[2]);#=>["crawl-66-249-64-119.googlebot.com", ["11...原创 2019-09-16 11:22:05 · 709 阅读 · 0 评论 -
xss + rails文本处理
风险描述跨站脚本攻击(XSS, Cross Site Script)通常指黑客通过“HTML注入”篡改了网页,插入恶意脚本,从而在用户浏览网页时,控制用户浏览器的一种攻击。XSS漏洞可被用于用户身份窃取(特别是管理员)、行为劫持、挂马、蠕虫、钓鱼等。XSS是目前客户端Web安全中最重要的漏洞。1)窃取窃取会话cookie并接管各类用户帐号,如机器登录帐号、用户网银帐号、各类管理员帐号;2)...原创 2019-01-22 15:48:18 · 339 阅读 · 0 评论 -
RAILS CONSOLE sql 操作
RAILS CONSOLE sql 操作2.0.0-p648 :001 &amp;amp;gt; a = ActiveRecord::Base.connection.execute &amp;quot;select question_id from answers group by question_id order by count(question_id) desc limit 10&amp;quot;2.0.0-p648 :002 &am原创 2019-01-04 09:15:34 · 355 阅读 · 0 评论