From: Qwe Qwe Date: 2008-04-19T21:14:16+09:00 Subject: Re: if behavior ehm great if true then @users = User.find( :all ) else @users = User.find( :all ) end if 1 respond_to do |format| format.html # index.html.erb format.xml { render :xml => @users } end works, but commenting out 1 if true then @users = User.find( :all ) else @users = User.find( :all ) end if respond_to do |format| format.html # index.html.erb format.xml { render :xml => @users } end makes the if not evaluated. why? -- Posted via http://www.ruby-forum.com/.