rails post form issue when using https -


following code, trying post form https site. i've googled many times no luck.

post_params = {                name: "peter",                age: "26",                school: "st. andrew secondary"              } uri = uri.parse('https://www.somehttps.com') http = net::http.new(uri, "443") http.use_ssl = true http.post_form(uri, post_params) 

but got:

nomethoderror (undefined method `post_form' #<net::http www.somehttps.com:443 open=false>) 

why so? please me, thank you.

try - net::http.post_form(uri, post_params)


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -