RailsCasts Pro episodes are now free!

Learn more or hide this

Dalibor's Profile

GitHub User: NoICE

Site: http://www.noice.cz

Comments by Dalibor

Avatar

Just logged in to post this gotcha too, but then I saw your comment.
This should be added to rails guides and definitely to release notes or something...

Avatar

I'm using

def name
 [self.first_name, self.last_name].compact.join(' ')
end

:)