Re: [Rails] http requests

2017-06-06 Thread Joe Guerra
Thanks. If I can figure out to make my own http request to my canada post account, I can possibly grab the shipping rate if I pass it weight, length, height, and width. On Tuesday, June 6, 2017 at 5:02:02 PM UTC-4, Jason FB wrote: > > Joe - > > > This (gems having gone stale) is generally

Re: [Rails] http requests

2017-06-06 Thread Jason Fleetwood-Boldt
Joe - This (gems having gone stale) is generally par for the course in the Ruby world. This is a good resource that gives you some idea of how popular & active any given gem might be: https://www.ruby-toolbox.com Choosing an old gem that is stale (hasn't been updated in a couple of years) is

Re: [Rails] http requests

2017-05-31 Thread Jason Fleetwood-Boldt
Hassan is correctly encouraging you towards the higher-level abstractions, like a Gem specifically written for this purpose. If you really want to know how to make outgoing http requests, the answer is the Net::HTTP Ruby library, which is documented here:

Re: [Rails] http requests

2017-05-31 Thread Hassan Schroeder
On Wed, May 31, 2017 at 10:39 AM, Joe Guerra wrote: > How about passing the parameters in the url? and opening up the canada post > site with that? You can certainly do that, if one of the gems doesn't meet your needs. Have you read the Canada Post API docs? -- Hassan

Re: [Rails] http requests

2017-05-31 Thread Joe Guerra
Ok, I'll try the gem. How about passing the parameters in the url? and opening up the canada post site with that? Thanks, Joe On Wednesday, May 31, 2017 at 1:36:20 PM UTC-4, Hassan Schroeder wrote: > > On Wed, May 31, 2017 at 10:27 AM, Joe Guerra > wrote: > > Hmm,

Re: [Rails] http requests

2017-05-31 Thread Hassan Schroeder
On Wed, May 31, 2017 at 10:27 AM, Joe Guerra wrote: > Hmm, which gem would allow you to perform http requests within Rails? I > would like to send a request to the canadapost website and pass it some > parameters and return a shipping total. > > I do believe there is a

[Rails] http requests

2017-05-31 Thread Joe Guerra
Hmm, which gem would allow you to perform http requests within Rails? I would like to send a request to the canadapost website and pass it some parameters and return a shipping total. I do believe there is a canadapost gem, but I'm not sure how upto date it is. I guess the other option is to