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:
>>  
Wouldn't this have to be
  @user = (User.find_by_username("Tom")) ? @user.id : 0
?