Subject: if statement with multiple conditions
From: Katsuo Isono <comics bigpond.net.au>
Date: Fri, 11 Jan 2008 23:39:33 +0900
Hi, I am pretty new to programming. What is the good way to write the
following condition.
def cart
if request.post and @cart.size < 10
puts "order accepted"
else
redirect_to :action => 'list'
end
end
--
Posted via http://www.ruby-forum.com/.