How to send a URL request in rails?

I need to call a URL with parameters from a method in rails. How do I call the URL in rails? And example is that in the method, I want to call this URL request:

How do I call this type of URL method in rails?


  • Did you try this :

    An example :

    require 'net/http'
    uri = URI('')
    req = Net::HTTP.get(uri)
    puts req #show result