Stupid Open-URI problem

Posted by hardwarehank, Fri Feb 16 00:32:55 UTC 2007


URI::InvalidURIError (bad URI(is not URI?): 
'http://www.ipnlighting.com/images/wasted.jpg'):
    /usr/local//lib/ruby/1.8/uri/common.rb:432:in `split'
    /usr/local//lib/ruby/1.8/uri/common.rb:481:in `parse'
#...

I couldn’t get it to work!

Wait…


Parameters: 
{"photo"=>{"url"=>"'http://www.ipnlighting.com/images/wasted.jpg'"}, 
"action"=>"new", "controller"=>"photos"}

Of Course!


curl -i -X POST -d \
"photo[url]=http://www.ipnlighting.com/images/wasted.jpg" \
http://localhost:3000/photos/new

All better!

Tags:

Comments

Have your say

A name is required. You may use Markdown in your comments.