In rails we can access db column through attributes rails provided, but can we change this ? for example I have db with name column could I implement something like.
def name
"sir" + name
end
I tried it, but it result in stack overflow. There is a way to accomplish this.
more question, Is there any difference between name and self.name.