Stupid Open-URI problem
February 16th, 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!

good for you !
Cheers