Last Updated: February 25, 2016
·
453
· dickeyxxx

Print out better model details with to_s

class User

  # ...

  def to_s
    "#<User:#{id} @name='#{name}'>"
  end
end

Really helps with logging!