You may want to extract this to a helper. Something like  `gravatar_for(@user)` would make it easy to re-use and cut the method calls on this line from 6 to 2.