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 · 107 阅读 · 0 评论 -
rspec-rails
Gemfilebookbook_chapters~/project/spec~/project/spec/factoriesbooks.rbFactoryBot.define do factory :book do name { Faker::Book.title } author { Faker::Book.author } en...原创 2019-03-22 18:02:18 · 247 阅读 · 0 评论 -
安装 Ruby, Rails 运行环境
步骤1- 安装 RVM1、https://ruby-china.org/wiki/install_ruby_guide2、http://www.rvm.io/3、Install GPG keys4、Install RVM载入 RVM 环境$ source ~/.rvm/scripts/rvmrvm:ok步骤2 - 用 RVM 安装 Rub...原创 2019-03-26 16:12:46 · 264 阅读 · 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 · 307 阅读 · 0 评论