N
Nicolas Blanco
Hi all!
This is really a newbie question...
Here is the simple code...
if @params[er_page].nil?
per_page = 20
else
per_page = @params[er_page]
end
Is there a better way to do this (put the parameter in the variable if
the parameter is not null, otherwise put 20) ?
Thanks...
Nicolas
This is really a newbie question...
Here is the simple code...
if @params[er_page].nil?
per_page = 20
else
per_page = @params[er_page]
end
Is there a better way to do this (put the parameter in the variable if
the parameter is not null, otherwise put 20) ?
Thanks...
Nicolas