Params[:data]

How can I get only GET or POST parameters?

If there is GET and POST then params[:data] returns GET, but I need that
POST overwrite GET.

What I cat do?

Gi Ga wrote:

How can I get only GET or POST parameters?

If there is GET and POST then params[:data] returns GET, but I need that
POST overwrite GET.

What I cat do?

Not sure what your cat does, but you could always (re)design your
application around that particular behavior. :slight_smile:

Daniel W. wrote:

Not sure what your cat does, but you could always (re)design your
application around that particular behavior. :slight_smile:

I make a livesearch, it works fine, but if user give a search word by
typing it in URL, livesearch doesn’t work any more, because GET
parameter overwrite POST (ajax updateform).

I need i way to filter GET parameters.

afaik there is not a way to do this. I know what you’re trying to do
(like PHP’s $_POST and $_GET), and in rails they’re all heaped into
params.

Help?