『改訂4版 基礎Ruby on Rails』正誤表

2018/09/25

第1刷

Chapter 3

p.161 の LIST chapter03/app/views/shared/_login_form.html.erb

誤 <form id="login_form">
正 <form id="login-form">

Chapter 5

p.229 の LIST chapter05/app/models/member.rb 4行目から7行目

      if query.present?
        rel = rel.where("name LIKE ? OR full_name LIKE ?",
          "%#{query}%", "%#{query%")}
      end

      if query.present?
        rel = rel.where("name LIKE ? OR full_name LIKE ?",
          "%#{query}%", "%#{query}%")
      end