From: Simon Krahnke Date: 2008-04-25T02:05:07+09:00 Subject: Re: Expected kelse * Phillip Gawlowski (17:35) schrieb: > if c.amount < 500 > ~ @project.budgmonthexpends.find(:all, :conditions => > [:year_id == c.year_id]).each do |d| > ~ else > ~ @project.budgmonthexpends.find(:all, :conditions => > ~ :year_id == c.year_id).each do |d| > ~ end > > Stuffing an 'else' in a block makes Ruby throw an error, obviously. Besides that, how is �[:year_id == c.year_id]� or �:year_id == c.year_id� supposed to work? mfg, simon .... l