Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
allan_cat
@linyunjiang
Member
NO. 24536 / 2016-01-11

广州
2 Topics / 22 Replies
2 Followers
4 Following
34 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 干掉你代码中的坏味道 at August 23, 2016

    👍

  • 请教关于同一个 domain 下面部署 2 个应用 (静态和动态) at May 11, 2016

    https://ruby-china.org/topics/28929 我之前的方法(nginx 直接配置的方法没成功就没试了)

  • gems.ruby-china.org 最近两天 Bad Gateway 502 的问题 at May 11, 2016

    第一次 502,第二次就可以了,赞

  • 如何一个 scope 中 使用另一个 scope? at May 11, 2016

    Model.type_one.type_two

  • ActiveRecord update_all 多个验证的问题 at April 21, 2016

    之前也遇到这个问题,最后只能加个事务,然后逐个 update 了

  • Grape 怎么定义 JSON 的默认日期格式 at April 13, 2016

    原来的时间存储里面包括了时区等信息,为何要强行转成其他呢?你数据拿出来的时候再用 strftime 转成想要的格式就行了

  • Rails 中的 Model 查询问题 [已解决] at April 11, 2016

    #5 楼 @sixther 这个问题很基础,建议先去看看入门例子http://guides.rubyonrails.org/getting_started.html,另外要注意的是,尽量不要把数据库查询写在 view 层,http://liuzxc.github.io/articles/rails-common-mistakes/

  • Rails- 让我欢喜让我忧! at March 17, 2016

    赞一个

  • Rails sanitize allowed_attributes 不安全 at March 16, 2016

    @rei 我使用了https://github.com/rgrove/sanitize进行白名单过滤,但如果再用 sanitize Sanitize.fragment(..) 来显示的话,还是有一些样式会丢失,这时如果用 raw Sanitize.fragment(..) 这样显示是正常的,但不清楚这样是否安全?

  • 爬虫代理 IP 被封 at March 16, 2016

    #1 楼 @xiaoronglv 正在寻求商业合作,谢谢回答

  • 爬虫代理 IP 被封 at March 16, 2016

    #3 楼 @huacnlee 项目至少每分钟 60 个请求才能符合需求,但每分钟 60 的频率应该也是会被封的吧

  • Rails 项目如何部署在子目录下? at February 20, 2016

    #8 楼 @zamia 谢谢 我试试

  • 初学编程求一个简单的项目 at February 19, 2016

    http://guides.ruby-china.org/getting_started.html 参照里面写个博客吧

  • [结束] 送几本《Docker 即学即用》 at February 19, 2016

    [email protected]

  • Rails 项目如何部署在子目录下? at February 05, 2016

    因为我用的是 unicorn 来部署,所以搞得比较麻烦,如果使用 passenger,像 2 楼那样就简单的多

  • [已解决] 微信支付不授权直接获取 open id 的方法 at February 02, 2016

    如三楼说的 return 一下应该就没问题了

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English