Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
lhx
@leslin123
Member
NO. 8830 / 2013-08-24

[email protected]
8 Topics / 43 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Ruby China 客户端发布 at January 17, 2014

    @ashchan 老帖子,也定一个,赞!

  • Ruby China for Android 新版本 at January 17, 2014

    @longerian 还是相当不错的。是不是换公司了,比较忙了就没有时间继续了。

  • 设置 i18n 时 date_select 出现 can’ t convert Symbol into String 错误 尝试多种方法不行 at January 14, 2014

    找到问题了,我代码里用了一段 locale 设置,我的浏览器里果然有 locale,值为 zh-cn 小写的,这个是导致问题的根本原因,哎呀,可给折腾了。

    def set_locale
      I18n.locale = cookies[:locale] || I18n.default_locale
    end
    
  • 设置 i18n 时 date_select 出现 can’ t convert Symbol into String 错误 尝试多种方法不行 at January 14, 2014

    好的,谢谢 @lgn21st

  • 设置 i18n 时 date_select 出现 can’ t convert Symbol into String 错误 尝试多种方法不行 at January 14, 2014

    谢谢 @lgn21st ,@zhaoguobin 我的版本是 Rails 3.2.13,我把 zh-CN.yml 的 开头 zh-CN: 改成小写的 zh-cn: 之后,就显示正常了。没有明白具体原因,我的设置是大写的:

    config.i18n.default_locale = "zh-CN"
    
  • 设置 i18n 时 date_select 出现 can’ t convert Symbol into String 错误 尝试多种方法不行 at January 14, 2014

    嗯,@zfjoy520 谢谢,等待大牛中 是不是需要把 Ubuntu 12 本地的 locale 也修改为中文的?当前是这样的

    # locale
    LANG=en_US.UTF-8
    LANGUAGE=en_US:en
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    
  • 设置 i18n 时 date_select 出现 can’ t convert Symbol into String 错误 尝试多种方法不行 at January 14, 2014

    @lgn21st @huacnlee 两位大牛帮忙看看,一直没有解决问题,多有打扰,谢谢!

  • I18N 怎么使用? at January 13, 2014

    @mingfei ,碰到同样的问题,后面你是怎么解决的?求助,谢谢!

  • 一直碰到 File to import not found or unreadable: bootstrap-responsive. 的问题 at January 09, 2014

    谢谢 @Martin91 ,我已经重新 bundle 了一下,重来了。

  • rails 如何能够识别当前是 development 还是 production 的? at January 08, 2014

    rails console

    Loading development environment (Rails 3.2.13) 1.9.3-p484 :001 > Rails.env => "development" 1.9.3-p484 :004 > quit i# RAILS_ENV=production rails console Loading production environment (Rails 3.2.13) 1.9.3-p484 :001 > Rails.en => "production"

  • 一直碰到 File to import not found or unreadable: bootstrap-responsive. 的问题 at January 08, 2014

    如 stackoverflow 哥们说的,关键是要精确制定版本好: Always add version to critical gems. Always use bundle install or bundle(default to install). Only use bundle update when it's really necessary and you are fully prepared.

    @Martin91 ,恢复一批已经升级的 gem,有快捷的方法吗?

  • 一直碰到 File to import not found or unreadable: bootstrap-responsive. 的问题 at January 07, 2014

    自己更新一下进展, 找到一篇最新的文章,描述这个问题: http://stackoverflow.com/questions/19948584/bootstrap-not-work-in-rails-application 大意是 bootstrap 的版本有问题;我看了一下老版本的配置文件

    • bootstrap-sass (2.1.1.0) --windows 老版本
      • bootstrap-sass (3.0.3.0) --Ubuntu 的是这样的;

    Bootstrap-responsive has been removed since Bootstrap 3.0.

    3.0 is mobile first design, and responsiveness is native now.

    Remove that require statement, no need now.

    Update

    Dexter(OP) finally solved the problem by going back to 2.3. Though the case is rare, I think two lessons can be learned:

    Always add version to critical gems.

    Always use bundle install or bundle(default to install). Only use bundle update when it's really necessary and you are fully prepared.

  • 在 Windows 平台上搭建 Ruby On Rails 开发环境 at August 24, 2013

    咱,10 秒 bundle 完,救星呀

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