Displaying 1 result from an estimated 1 matches for "tbproxy".
Did you mean:
obproxy
2006 Mar 19
1
Sending post request with post_form
Basically I have a controller with this:
@lang = params[''lang''] || ''en''
@errors = request.raw_post
@feed_stats =
Net::HTTP.post_form(URI.parse("http://www.google.com/tbproxy/spell?lang="
+ @lang), @errors)
render :text => @feed_stats
However whenever I run this I get an error message:
undefined method `post_form'' for Net::HTTP:Class
I''ve included
require ''net/http''
require ''uri''
in my enviroment.rb
can a...