class Book include ActiveModel::Model attr_accessor :id, :title def to_s "#{title}".html_safe end end