Best practices about Rails Action Controller Overview
In this guide you will learn what is the best practices about controllers work and how they fit into the request cycle in your application.
Get url, path, fullpath from request.
Full path with query string
Pass arrays & objects via querystring
Rails has some great patterns for passing complex objects via querystring.
# QueryString: numbers=1&numbers=2&numbers=3
# QueryString: user[id]=1&user[name]=Nathan
# QueryString: users[id]=1&users[name]=Nathan&users[id]=2&users[name]=Emma
You can try all this out yourself from a Rails console.
# rails c
More to see Ruby on Rails API - ActionDispatch::Request
 Rails 5 Routing Cookbook: 10 recipes for the novice Rails developer and beyond | by Rui Freitas | Light the Fuse and Run | Medium- https://medium.com/lightthefuse/rails-5-routes-cookbook-10-recipes-for-the-novice-rails-developer-and-beyond-9986f43064bc