Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
李华顺
@huacnlee
Admin
NO. 2 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
502 Topics / 9058 Replies
959 Followers
53 Following
105 Favorites
Reward
GitHub Public Repos
  • autocorrect 1410

    A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuation...

  • rails-settings-cached 1101

    Global settings for your Rails application.

  • rucaptcha 696

    Captcha Gem for Rails, which generates captcha image by Rust.

  • zed-theme-macos-classic 95

    A macOS native style theme for Zed, let it same like native app in macOS.

  • vscode-macos-classic.t... 21

    macOS Classic theme for Visual Studio Code

  • zed-extension-action 19

    GitHub Action for automatically bump Zed Extensions version after a release.

  • autocorrect-action 11

    GitHub action for use AutoCorrect as lint

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 4

    Dock layout UI component for GPUI, that extracted from Zed project.

  • zed-lalrpop 3

    LALRPOP parser grammar support for Zed.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Sequel 在做纯 API 项目时是不是比 ActiveRecord 更有优势? at April 11, 2016

    #8 楼 @cysh 我是说对 Ruby 的熟悉度!

  • Sequel 在做纯 API 项目时是不是比 ActiveRecord 更有优势? at April 11, 2016

    熟悉度不够,用 Sequel 就是找抽

    ActiveRecord 那么多资源,不管是三方扩展库,还是问题解决方案

  • 有人使用 Docker 来简化部署 Rails 的吗? at April 11, 2016

    其实如果 Rails 部署安装服务器够简单,那加上 Capistrano / Mina 之类的部署工具就已经非常方便了,问题还是在部署新服务器安装 Ruby / Rails 环境麻烦的问题。

    所以,你需要 https://github.com/huacnlee/init.d

  • 使用 Typhoeus 向银联发送 post 请求,代码在本地运行,request.run 速度很快,但是在服务器上运行出错? at April 08, 2016

    #4 楼 @kevin_he 换台机器试试啊,如果有问题,说明要不那机器有问题,要不那机器被屏蔽了

  • 使用 Typhoeus 向银联发送 post 请求,代码在本地运行,request.run 速度很快,但是在服务器上运行出错? at April 08, 2016
    ping 101.231.204.80
    telnet 101.231.204.80 5000
    

    检查网络啊

  • Grape 中如何使用 respond_to at April 08, 2016

    就是没那个方法啊,Rails 也包含好多部分,Grape 只是挂在了 Rails 的服务上,但 respond_to 是有 ActionController 提供的

  • 外部 URL 通过 HTTP,POST 到项目上 notify 这个 action 的参数,怎么获取到? at April 07, 2016
    params['accNo']
    
  • 外部 URL 通过 HTTP,POST 到项目上 notify 这个 action 的参数,怎么获取到? at April 07, 2016

    不是都取到了么!都打印出来了

    现在的问题是没有正确返回页面内容

    ActionView::MissingTemplate (Missing template conts/notify, application/notify with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :slim, :coffee]}. Searched in:
    * "/home/deployer/releases/101/app/views"
    
  • ActiveRecord 用 bulk_insert 来批量插入数据,提高效率 at April 07, 2016

    #8 楼 @hooopo

    大概 130w 数据用时 16 秒,平均每秒插入 8w 条记录左右。

    ... 暴快啊!

  • ActiveRecord 用 bulk_insert 来批量插入数据,提高效率 at April 07, 2016

    #5 楼 @ywjno 插入数据有很多细节场景,这段代码在你的项目里面实际跑过么?

  • Rails 如何使用 Session ID 获取 Session 的信息? at April 07, 2016

    不要用 PHP 的方式来看 Rails 的 Session,实现方式不一样

  • Ruby 里面关于类 module 名称的问题 at April 06, 2016
    class Admin::UsersController
    

    这样命名空间没有在 Admin 下面,所以直接调用 Name 是找不到的

  • ActionCable 运行时,Websocket 连接不能建立的问题 at April 06, 2016

    要注意修改 config/environments/production.rb 里面的:config.action_cable.allowed_request_origins = ['http://youhostname.com'] 允许你的网站访问 ActionCable,不然连接会被拒绝,这里要注意要带上 http:// 或 https://;

  • rubychina 酷站 icon 被墙的问题 at April 05, 2016

    那个不管,重要性也不是太大,翻墙先

  • 一个下载接口,点击时会被访问,弹出 “确认下载”,点击确认后又会被访问。 at April 05, 2016

    确认窗口用 JS 实现啊

  • Ruby China on PostgreSQL at April 04, 2016

    #29 楼 @hlxwell 同样的方法调出自增 Id 就可以了呀

  • 跟着 Ruby on Rails Tutorial 这本书中的一个问题 at April 02, 2016

    肯定有已经存在的 column 呀,你这样的问题没人能帮你解决,就是重复了,是在不行 db:drop 以后重来吧。

    好好检查,一定是哪里重复了

  • Rails Hosting 2016 调查 at April 01, 2016

    2014 年的结果

    http://rails-hosting.com/2014/index.html

  • ruby-china 是如何处理头像的上传问题的? at April 01, 2016

    保存是 Devise 实现的 super 调用了 Devise 的代码

  • 新的通知功能上线 - 基于 notifications 这个 Rails Engine gem at April 01, 2016

    #18 楼 @_kaichen 恩,新实现的 Gem 还没那个 Controller 的功能,所以暂时去掉了

  • 新的通知功能上线 - 基于 notifications 这个 Rails Engine gem at April 01, 2016

    #16 楼 @_kaichen 截图看看你的消息列表什么样的?是有未读的在第二页么?

  • 简聊开源版本 -- 以及他们出的一系列组件 at April 01, 2016

    #4 楼 @_kaichen 我们一直想找一个有这样功能的,并且包含高质量语音视频功能的聊天服务

  • where 的一个蛋疼设定 at March 31, 2016

    #5 楼 @killernova 这样巨慢,N+1 Queries

  • 以后真的可以在 Win 下无痛苦的开发 Rails 或者其他依赖 Posix 环境的工程了 at March 31, 2016

    还演示了 Sinatra 应用

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