[Nitro] param handling

Michael Fellinger m.fellinger at gmail.com
Mon Oct 23 18:34:32 EDT 2006


On 10/23/06, George Moschovitis <george.moschovitis at gmail.com> wrote:
> Hey Jonathan,
>
> very descriptive email ;-)
>
> > George wants the first to be possible, I don't.
>
> In my design arguments == parameters. But after reading your nice
> email, I am begining to like your idea to separate args/params. I am
> not yet convinced though. Let's see what others think  about this.

I'm fully for that, i hardly ever mix up GET/POST, but if it has a
consistent behaviour, i'm all for at least providing the functionality
:)

it's just not very logical to me that /x?y=z&t=s should be handled the
same as /x/z/s

another thing is, GET-parameter cannot overwrite POST-params, right?

>
>
> > ### Strict param requirements?
> > ...
> > Problems with the first approach:
> >
> > * More error checking needed within the `action()` method.
> > * The first can also be created by normal Ruby means:
> >    `def action(par1 = nil, par2 = nil)`
>
> Problems with the second approach:
>
> - have to error check on every request
> - less flexible code.
>
> anyway I have some code that implements this, will be available
> shortly on the repo.
>
>
> thanks,
> George.


More information about the Nitro-general mailing list