Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
咖啡凉了
@kfll
VIP
NO. 1498 / 2012-03-19

天津
9 Topics / 48 Replies
0 Followers
0 Following
3 Favorites
GitHub Public Repos
More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • bundle install 能在用户的 gem 目录中进行安装吗? at April 25, 2012

    Make sure all dependencies in your Gemfile are available to your application.

    $ bundle install [--system]

    Gems will be installed to your default system location for gems. If your system gems are stored in a root-owned location (such as in Mac OSX), bundle will ask for your root password to install them there.

    While installing gems, Bundler will check vendor/cache and then your system's gems. If a gem isn't cached or installed, Bundler will try to install it from the sources you have declared in your Gemfile.

    The --system option is the default. Pass it to switch back after using the --path option as described below.

    Install your dependencies, even gems that are already installed to your system gems, to a location other than your system's gem repository. In this case, install them to vendor/bundle.

    $ bundle install --path vendor/bundle

    http://gembundler.com/bundle_install.html

  • 如何在 windos “Command Prompt with Ruby on Rails” 中,通过命令打开 Sublime Text 2? at April 23, 2012

    #2 楼 @Levan

    windows 的话:

    假设我的 sublime text 2 在 C:\Program Files\Sublime Text 2\sublime_text.exe

    1、在资源管理器右键菜单用 Sublime Text 2 打开项目的方法:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Folder\shell\sublime]
    @="用 Sublime Text 2 打开文件夹"
    
    [HKEY_CLASSES_ROOT\Folder\shell\sublime\command]
    @="C:\\Program Files\\Sublime Text 2\\sublime_text.exe %1"
    
    
    

    修改C:\\Program Files\\Sublime Text 2\\sublime_text.exe(不修改%1)为你的 sublime_text.exe 的地址,保存为 xx.reg 导入注册表就行了

    2、在命令行打开项目

    在 windows 的系统环境变量的Path中添加sublime_text.exe所在路径,比如我应该添加C:\Program Files\Sublime Text 2\

    假设命令行当前路径为你的工作路径,运行sublime_text %cd%,如:

    D:\server\html>sublime_text %cd%
    
    
    
  • 公司厕所信号调查 at April 23, 2012

    …厕所离工作室比较近…wifi 覆盖…

  • 1000 个小时学会 Rails - 002 测试!测试! at April 23, 2012

    #2 楼 @Juanito 楼主是台北人?打简体字不会有压力么…

  • 1000 个小时学会 Rails - 002 测试!测试! at April 23, 2012

    哈哈连延伸阅读里都出现「为什么女朋友不要我了」了…

  •  升级 xcode 后,造成某些 gem 无法编译通过 at April 23, 2012

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

  • 有人自建 rubygems 服务器吗? at April 23, 2012

    15 万个共多少空间?

  • 如何在 windos “Command Prompt with Ruby on Rails” 中,通过命令打开 Sublime Text 2? at April 22, 2012

    把文件夹拖到 sublime text 2 界面中

  • 从 ruby 到 php 很累 at April 22, 2012

    从 ruby 转 php 的推荐使用 yii 框架,模仿 rails 的,效率也极高

  • MAC X86 有人试用过吗,靠谱吗,如何搞? at April 22, 2012

    玩黑苹果三四年…单系统黑苹果做事快两年了。

  • 有没有感觉 web 开发最难的是 html、css、javascript 这些东西? at April 22, 2012

    …前端表示压力比较小

  • Sublime Text 2 中有没有类似 Vim 下 zz 的命令 at April 22, 2012

    #7 楼 @leozwa 不用谢ヽ (´o`;可喜欢 sublime text 2 了~

  • Sublime Text 2 中有没有类似 Vim 下 zz 的命令 at April 22, 2012

    #5 楼 @leozwa 在 User 设置文件中加"scroll_past_end": true来覆盖 OS X 的系统默认设置

  • Sublime Text2 tab 标签咋没了 at April 22, 2012

    对文件内容做修改后就会自动出现标签

  • pythoner 砸场子来了 at March 19, 2012

    捧场.. js:

    '11ab1111ab111ac11111'.match(/ab/g).length;
    
    
    '11ab1111ab111ac11111'.split('ab').length - 1;
    
    

    中式排名:

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