<p>What is the simplest way to identify and separate GET and POST parameters from a controller in Ruby on Rails, which will be equivalent to $_GET and $_POST variables in PHP?</p>

You can use the
```
request.get?
```
and
```
request.post?
```
methods to distinguish between HTTP Gets and Posts.
See
http://api.rubyonrails.org/classes/ActionDispatch/Request.html