[Nitro] param handling

Jonathan Buch john at oxyliquit.de
Tue Oct 24 13:19:41 EDT 2006


On Tue, 24 Oct 2006 12:10:01 +0200, George Moschovitis <george.moschovitis at gmail.com> wrote:

>> another thing is, GET-parameter cannot overwrite POST-params, right?
>
> you suggest that instead of request.params we have separate
> request.get_params/request.post_params?

Maybe...

Suggestion:  When method == POST, use request.post_params as .params
but merge them with .get_params (not overriding the .post_params).

def params
   post? ? get_params.update(post_params) : get_params
end

Jo

-- 
Feel the love
http://pinkjuice.com/pics/ruby.png


More information about the Nitro-general mailing list