Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
lhx
@leslin123
会员
第 8830 位会员 / 2013-08-24

[email protected]
8 篇帖子 / 43 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Ruby China 客户端发布 at 2014年01月17日

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

  • Ruby China for Android 新版本 at 2014年01月17日

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

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

    找到问题了,我代码里用了一段 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 2014年01月14日

    好的,谢谢 @lgn21st

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

    谢谢 @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 2014年01月14日

    嗯,@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 2014年01月14日

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

  • I18N 怎么使用? at 2014年01月13日

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

  • 一直碰到 File to import not found or unreadable: bootstrap-responsive. 的问题 at 2014年01月09日

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

  • rails 如何能够识别当前是 development 还是 production 的? at 2014年01月08日

    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 2014年01月08日

    如 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 2014年01月07日

    自己更新一下进展, 找到一篇最新的文章,描述这个问题: 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 2013年08月24日

    咱,10 秒 bundle 完,救星呀

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