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/.