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?
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.
Daniel Waite wrote:
Not sure what your cat does, but you could always (re)design your application around that particular behavior.
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.
Help?
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.