On Thu, Apr 26, 2012 at 3:11 AM, Robert Klemme
<shortcutter / googlemail.com> wrote:
> On Thu, Apr 26, 2012 at 1:46 AM, Hassan Schroeder
> <hassan.schroeder / gmail.com> wrote:
>> =A0@user =3D User.find_by_username("Tom") ? @user.id : 0

Wouldn't this have to be
  @user =3D (User.find_by_username("Tom")) ? @user.id : 0
?