Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
文祥
@phaibin
VIP
NO. 1875 / 2012-04-19

[email protected]
上海
5 Topics / 16 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 撸了一个宝宝起名字的 APP,至今为止最好的起名 APP,让你起了又起。 at April 10, 2015

    有启发,刚好用到

  • Routes 里面 API 加版本号的问题 at December 26, 2014

    #7 楼 @allenwei 如果分版本,命令空间还是有必要加的

  • Routes 里面 API 加版本号的问题 at December 26, 2014

    #4 楼 @Rei 不是,就是见到别人基本都有小版本,所以我才这么纠结。 刚看了 tweet 的 api,比如:https://api.twitter.com/1.1/search/tweets.json?q=from%3ACmdr_Hadfield%20%23nasa&result_type=popular facebook 的也是带小版本的。

  • Routes 里面 API 加版本号的问题 at December 26, 2014

    #1 楼 @allenwei 现在很头疼的是 controller 的命名,类名不是带 dot 或者 underscore,就是不能写成:Api::V1.1::UsersController 或 Api::V1_1::UsersController。不知道大家都是怎么处理的

  • Chef 的错误 at June 27, 2014

    #6 楼 @kgen 我在 Ubuntu 系统下面用 root 执行不可以,用 ubuntu 账号就可以了,这也太诡异了吧

  • Chef 的错误 at June 27, 2014

    #6 楼 @kgen 我用自己机器来连接 UCloud 主机,貌似跟墙没关系吧

  • Chef 的错误 at June 27, 2014

    #3 楼 @kgen 是什么设置导致的?

  • Stackoverflow 什么情况 at September 18, 2013

    我在上海,很慢,翻墙很快,就是最近几天发生的变化

  • 在 action 中如何多次返回结果? at September 02, 2013

    #2 楼 @badboy 牟教授是谁呀?

  • 在 action 中如何多次返回结果? at September 02, 2013

    #1 楼 @zj0713001 也就是说我只能在浏览器设置个 timer 来不停从服务器获取最新状态喽?

  • 在 redirect 的时候可以修改 request 的 header 么? at August 30, 2013

    #1 楼 @huacnlee 谢谢回复,但是这个太依赖 nginx,我部署在 heroku 是没法控制 nginx 的。而且说实话没看太懂,文章里面貌似应该是设置 response 的 header 吧。

    我再说具体一点,我需要转到外部的一个链接地址,但是它验证了 referer,我需要把 referer 改掉或者去掉。因为是一个 mp3,我也不能模拟发请求取得 response 再转发出去。

  • Sublime text 2 对重构的支持 力度不强啊 at March 19, 2013

    像提取方法这种支持应该不难吧,跟是不是动态语言没关系,手动操作才是浪费生产力

  • sublime text 里面怎么实现 action 和 view 之间跳转的这种功能 at March 03, 2013

    Rails File Switcher 不错,可惜有些功能还不是很完善

  • 请教大家有没有自动格式化 Ruby 源代码的工具? at April 19, 2012

    textmate 有一个 bundle 可以格式化 https://github.com/mocoso/code-beautifier.tmbundle

  • iTerm2 中有没有 Home/End 快捷键 at April 19, 2012

    进入 Preferences,Keys,left option 改为+Esc

    修改 option+left:action 改为 Send Escape Sequence,Esc+ 为 B 修改 opton+right:action 改为 Send Escape Sequence,Esc+ 为 F 增加 cmd+left:action 改为 Send Escape Sequence,Esc+ 为 [H 增加 cmd+right:action 改为 Send Escape Sequence,Esc+ 为 [F

    这样 option+left、right 就是左右移动单词,cmd+left、right 就是移动到行首行尾

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