From: Arlen Cuss Date: 2008-04-19T21:17:41+09:00 Subject: Re: if behavior ------=_Part_6808_12087561.1208607458037 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Sat, Apr 19, 2008 at 10:14 PM, Qwe Qwe wrote: > if true then > @users = User.find( :all ) > else > @users = User.find( :all ) > end if > 1 > respond_to do |format| > format.html # index.html.erb > ... See Florian's message. Replace "end if" with "end" only -- it's modifying the entire previous conditional to only happen if the bit that follows returns true (or a truthy value). HTH, Arlen ------=_Part_6808_12087561.1208607458037--