What's with the @user / user discrepancy?  Can you set one to the value of the other if nil, and then have the link_to code DRYed out a bit?