
Ruby
Ruby
脚步6978
Hello World
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ruby
RVM 安装管理多个Ruby环境及版本管理器 bundle是rails框架里面安装Gemfile指定的各种库的工具,相当于多个RubyGems批处理运行。在配置文件gemfilel里说明你的应用依赖第三方包,他自动帮你下载安装多个包,并且会下载这些包依赖的包。 RubyGems是Ruby程序包管理器(Ruby中一个“程序”叫rubygems,简称 gem,而用来管理项目 的gem),类似...原创 2018-12-21 10:39:25 · 150 阅读 · 0 评论 -
rspec-rails
Gemfile book book_chapters ~/project/spec ~/project/spec/factories books.rb FactoryBot.define do factory :book do name { Faker::Book.title } author { Faker::Book.author } en...原创 2019-03-22 18:02:18 · 309 阅读 · 0 评论 -
安装 Ruby, Rails 运行环境
步骤1- 安装 RVM 1、https://ruby-china.org/wiki/install_ruby_guide 2、http://www.rvm.io/ 3、Install GPG keys 4、Install RVM 载入 RVM 环境 $ source ~/.rvm/scripts/rvm rvm:ok 步骤2 - 用 RVM 安装 Rub...原创 2019-03-26 16:12:46 · 349 阅读 · 0 评论 -
rake
Ruby中脚本任务构建工具rake的(Ruby Make) Rakefile # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rak...原创 2019-04-08 16:22:49 · 364 阅读 · 0 评论