Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@bryanwong
高级会员
第 649 位会员 / 2012-01-01

广州
21 篇帖子 / 24 条回帖
1 关注者
0 正在关注
6 收藏
GitHub Public Repos
  • AssetsPack 0

    Files Packer

  • Cocos2dxUsefulClasses 0

    cocos2d-x实用类

  • FilpBlocks 0

    使用Cocos2d-x 3.1.1 Lua编写的小游戏

  • SnakeGameLua 0

    使用cocos2d-x lua编写的贪吃蛇小游戏

  • ph-open 0

    PuzzleHero

  • ShaderTestV31 0

    Cocos2d v3.1 Lighting and Blur Shader Example

  • ShaderLayer 0

    Fullscreen shader effect helper class for Cocos2d-x

  • DLCImagePickerController 0

    ImagePickerController with live filters, radial blur and more. Brought to you by Backspaces.

  • GPUImage 0

    An open source iOS framework for GPU-based image and video processing

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海][2012年05月29日] Ruby Tuesday 基于 Rails 和 iPhone 的移动开发实践 at 2012年05月30日

    没有视频太遗憾了! @jjxp2007 Rails 做 API server,是用的 rails-api gem 吗?还是其他的? 真有一些迫不及待啦!

  • [上海][2012年05月29日] Ruby Tuesday 基于 Rails 和 iPhone 的移动开发实践 at 2012年05月30日

    这样的分享太棒了!期待视频~ 什么时候能见到呀?

  • 1000 个小时学会 Rails - 004 神秘的 X 项目 at 2012年05月13日

    酷毙啦!这样的教程太欢乐啦! 完全把学习变成了享受,楼主好样的!期待下文。

  • 网站、微博 APP、iPhone APP 怎样共享数据? at 2012年05月01日

    #1 楼 @qichunren 是我没有说清楚。微博 APP 是站内应用,通过 iframe 嵌入到 weibo.com。网站是一个版本,提供给微博的又是一个版本。那么两个版本之间怎样共享数据呢?Rails 如何处理同一套数据,用不同的格式或者规格呈现呢?

    需要一套全新的 route,controller 和 view 吗?

  • Rails 3.2 的 Ajax 向导 at 2012年04月27日

    太棒了!对于 Rails 的 ajax 一直很困惑,看完楼主的介绍,豁然开朗!多谢分享!

  • 求 Ruby on Rails 的 Unicron + Nginx 的部署完整步骤 at 2012年04月25日

    呃,原来你已经看到了那个帖子。不要再到处找文档了,就按照帖子里的去做,如果有问题再发出来。很可能就会成功的。

  • 求 Ruby on Rails 的 Unicron + Nginx 的部署完整步骤 at 2012年04月25日

    我也经历了痛苦的过程,想发布到 Heroku,各种问题,尤其 asset pipline。最后还是换到了 AWS 的 EC2。 安装 nginx,按照官方网站就可以。配置参考 ruby-china 的。我是这样配置成功的。 http://ruby-china.org/topics/471

  • 用 Rails 做 Instagram 的后台,要怎样架构?[内附连接] at 2012年04月22日

    如果直接用 Redis 做数据库呢? http://blog.sina.com.cn/s/blog_5374d6e30100tgwf.html

    不知道 Ruby 有没有相应的实现?

  • jQuery 动画的原理? at 2012年04月12日

    谢谢大家的回复!

    站在开发的角度,是怎样做的呢?比如开发的步骤?

    是先大概想好动画的元素,然后按照时间的顺序,一步步实现的吗?这样开发的时候有点乱吧?

  • 基于 IP 计算物理距离 at 2012年02月20日

    @willmouse 谢谢回复!

    LBS 应用已经非常多了,这个功能也是常用功能,有相应的 Gem 实现了。 https://github.com/alexreisner/geocoder https://github.com/imajes/geokit-gem

  • Ruby-China 社区可不可能孵化出一些创业项目? at 2012年02月18日

    @ichord 具体点呢?

    @Kamehamehon 这个项目真的很酷!

  • Ruby-China 社区可不可能孵化出一些创业项目? at 2012年02月18日

    180 多次浏览,只有 4 次回复。大家对这个话题不感兴趣吗?还是不方便发表看法呢?

    这个话题的反响比较热烈:http://ruby-china.org/topics/970

    可是更进一步操作,却少人参与了。大家既然看到这个话题了,能随意发表点看法吗?

    如果对这样的项目感兴趣,我可以先把我目前的项目发出来,邀请大家加入共同开发运营~

  • Rails 3.2.1 生产环境下出问题了 at 2012年02月16日

    能说下你是怎么解决的吗?我正被 rake assets:precompile 困扰呢

  • Ruby-China 社区可不可能孵化出一些创业项目? at 2012年02月16日

    @fredwu 的 blog 分享: http://fredwu.me/post/9036730472/open-sourcing-a-200-hour-project-the-story-behind-it

  • 大家把应用从 development 发布到 product,有没有遇到过问题吗? at 2012年02月14日

    #5 楼 @huacnlee

    应该是说这个吧: production: uri: <%= ENV['MONGOHQ_URL'] %>

  • 大家把应用从 development 发布到 product,有没有遇到过问题吗? at 2012年02月14日

    mongoid.yml

    development:
      host: localhost
      database: myapppp_development
    
    test:
      host: localhost
      database: myapppp_test
    
    # set these environment variables on your prod server
    production:
      uri: <%= ENV['MONGOHQ_URL'] %>
    

    是不是这样的配置,就无法在开发机环境,运行 production 了?

  • 大家把应用从 development 发布到 product,有没有遇到过问题吗? at 2012年02月14日

    @huacnlee omniauth.rb

    Rails.application.config.middleware.use OmniAuth::Builder do
      provider :twitter, 'M7vwGTHl7vA7DfjND7E69w', 'vnwWIqdB2KRD1TpMZJpMk4mrlbOmPKw0YBzvu1CJio'
    #   provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
    end
    

    @LeveyZhu 开发机上的 production log

    Started GET "/" for 127.0.0.1 at 2012-02-14 10:58:51 +0800
    Processing by HomeController#index as HTML
    MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
    Completed 500 Internal Server Error in 11ms
    
    TypeError (db_name must be a string or symbol):
      app/controllers/application_controller.rb:11:in `current_user'
      app/controllers/home_controller.rb:3:in `index'
    

    development 环境就没有错误,production 却有这些错误。

  • Heroku Routing 问题 at 2012年02月14日

    貌似找到原因了。

    heroku logs
    cache: [GET /auth/twitter] miss
    

    缺少了 Memcache http://stackoverflow.com/questions/8484397/routingerror-for-rails-3-1-on-heroku

  • Heroku push 失败 at 2012年02月14日

    修改 thin 后,成功 push 了,谢谢大家的帮助!

  • Heroku push 失败 at 2012年02月14日

    Gemfile 里是这样写的:

    group :production do
      gem 'thin'
    end
    

    我把 development 环境也加上试试。

  • 有哪个好的 gem 实现 ip to location 功能? at 2012年02月10日

    谢谢大家的回复,我用了 geoip,挺方便的。
    https://github.com/cjheath/geoip

  • 新手问题:“计划任务” 怎样实现? at 2012年02月10日

    谢谢大家的回复! 同时再请教一下,生成多篇文章的实现方法。 比如在 Ruby-China 里,我发表一篇帖子,那么实际上生成 5 篇,标题、内容一模一样。

    而发布者 (我) 只能看到一篇,其他浏览者可以看到 5 篇。任何一篇被回复后,发表着 (我) 就都可以看到。

    目的是为了让我以为只发表了一篇,而实际上发布了 5 篇。

    这样做的意图是,我的一篇帖子,能分别被 5 个人回复,我可以分开来浏览,就相当于跟每一个人对话一样。

  • 怎样为含有 respond_to 的 action 指定 layout? at 2012年01月29日

    找到了一个方法:

    def show
      @post = Post.find(params[:id])
      respond_to do |format|
        format.html  {render :layout => false}
        format.json
      end
    end
    
  • 者也挂了? at 2012年01月09日

    @huacnlee 请不要关啊!上面的信息量比较多 (尤其涉及到者也的部分),而且和自己部署的也有一些不一样的地方,经常上去比较。也是其他初学者最好的 demo!

    我本来打算用 django 去做一个项目,结果发现了者也,从此转到 rails,现在还在学习中。

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