然后就这样了
Started POST "/line_items?product_id=20" for 127.0.0.1 at Sat Dec 01 00:19:06 +0800 2012
Processing by LineItemsController#create as HTML
Parameters: {"authenticity_token"=>"kVYk1QwvgXragCU1Xq6il4ssMIYI52RRE1XehSWVKsU=", "product_id"=>"20"}
(0.1ms) begin transaction
SQL (0.3ms) INSERT INTO "carts" ("created_at", "updated_at") VALUES (?, ?) ["created_at", Fri, 30 Nov 2012 16:19:06 UTC +00:00], ["updated_at", Fri, 30 Nov 2012 16:19:06 UTC +00:00] commit transaction
Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? ORDER BY title LIMIT 1 ["id", "20"] begin transaction
SQL (0.3ms) INSERT INTO "line_items" ("cart_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?) ["cart_id", 70], ["created_at", Fri, 30 Nov 2012 16:19:06 UTC +00:00], ["product_id", 20], ["updated_at", Fri, 30 Nov 2012 16:19:06 UTC +00:00] commit transaction
Cart Load (0.2ms) SELECT "carts".* FROM "carts" WHERE "carts"."id" = 70 LIMIT 1
Redirected to http://0000:3000/carts/70
Completed 302 Found in 234ms (ActiveRecord: 224.6ms)
[2012-12-01 00:19:06] ERROR URI::InvalidURIError: the scheme http does not accept registry part: 0000:3000 (or bad hostname?)
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/uri/generic.rb:732:in merge'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpresponse.rb:164:in
setup_header'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpresponse.rb:102:in send_response'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:79:in
run'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:173:in start_thread'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in
start'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in start_thread'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:95:in
start'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in each'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in
start'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:23:in start'
/home/my/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:82:in
start'
/home/my/.rvm/gems/ruby-1.8.7-p370/gems/rack-1.4.1/lib/rack/handler/webrick.rb:13:in run'
/home/my/.rvm/gems/ruby-1.8.7-p370/gems/rack-1.4.1/lib/rack/server.rb:265:in
start'
/home/my/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.2.9/lib/rails/commands/server.rb:70:in start'
/home/my/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.2.9/lib/rails/commands.rb:55
/home/my/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.2.9/lib/rails/commands.rb:50:in
tap'
/home/my/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.2.9/lib/rails/commands.rb:50
script/rails:6:in `require'
script/rails:6