I got a GET URL that calls a controller method getInfo. It can be called by mydomain.com/getInfo.json?params=BLAHBLAH or mydomain.com/getInfo?params=BLAHBLAH
In the cont
If you need to check if it was an Ajax request you can check for a header[X-Requested-With] using request.xhr?
header[X-Requested-With]
request.xhr?
Example code snippet
if request.xhr? # Do the ajax stuff else # Do normal stuff end