Subject: Re: Newbie : assign a value to a variable...
From: Nicolas Blanco <slainer68 gmail.com>
Date: Mon, 28 Aug 2006 23:59:45 +0900
References: 211106211134
In-reply-to: 211134
Thank you very much for all your answers...
I think I will use this for now :
per_page = @params.fetch(:per_page, 20).to_i
per_page = 20 if per_page <= 0
Nicolas.
--
Posted via http://www.ruby-forum.com/.