I am following along with the Rails 3 in Action book, and it is talking about override to_s in the model. The code is the following:
to_s
def to_s
This function is returning a string with the email and whether it they are an admin or user... ie
user_1 = {:email => "test@email.com", :admin => true}
so the call
user_1.to_s
would return the string
"test@email.com Admin"