Subject: Re: Newbie : assign a value to a variable...
From: gwtmp01@ c o
Date: Mon, 28 Aug 2006 23:26:27 +0900
References: 211106211110211125
In-reply-to: 211125
On Aug 28, 2006, at 10:15 AM, Luc Heinrich wrote:
> You can also do:
> per_page = @params.fetch(:per_page, 20)
Thanks for that. I've been oblivious to the default and block
options for fetch!
Gary Wright