-
rails new CodeReading
Ruby on Railsをclone
|+CodeReading/
|+rails/
# Gemfile
source 'https://rubygems.org'
gem 'rails', path: '../rails'
gem 'pg'
gem 'pry-rails'
gem 'pry-doc'
gem 'pry-byebug'
gem 'byebug'
bundle install
rails g model User name:string
class User < ActiveRecord::Base
binding.pry
validates :name, length: { maximum: 30 }
end
-
rails c
でテキトーなuserを作成