0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Railsコードリーディング環境を整える

Last updated at Posted at 2017-03-25

  • 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を作成
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?