who can explain this to me?
url = “http://” << url if url[0…3]==“www.”
the logger line correctly logs any URL that’s been submitted, let’s
say it’s “www.amazon.co.uk”
BUT Rails raises an exception on the next line, complaining about nil.
 (obviously from the url[0…3] bit)
It works if I replace that line with
self.url = “http://” << self.url if self.url[0…3]==“www.”
I just want an explanation why. It seems to be happy with logger.info
url, but why not url[0…3].
Why is ‘self.’ only necessary SOME of the time when manipulating model