This a example project for carrierwave-qiniu
need help...
当我传图片的时候抱这个错误。
Started POST "/screenshots" for 127.0.0.1 at 2014-05-28 03:45:14 +0800
Processing by ScreenshotsController#create as HTML
Parameters: {"utf8"=>"✓", authenticity_token"=>"OzC1LDFRWOEWNPTWkWfbnYG4EvAFpIvNd4Lo6P3eG78=", "screenshot"=>{"name"=>"scrrenshot", "image"=>#<ActionDispatch::Http::UploadedFile:0xb5cabb28 @original_filename="GNOME Terninal.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"screenshot[image]\"; filename=\"GNOME Terninal.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20140528-5657-auwl42>>}, "commit"=>"Create Screenshot"}
(0.1ms) begin transaction
SQL (2.1ms) INSERT INTO "screenshots" ("created_at", "image", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 27 May 2014 19:45:14 UTC +00:00], ["image", "image.png"], ["name", "scrrenshot"], ["updated_at", Tue, 27 May 2014 19:45:14 UTC +00:00]]
(0.1ms) rollback transaction
Completed 500 Internal Server Error in 58.1ms
NoMethodError (undefined method `publish' for Qiniu::RS:Module):
app/controllers/screenshots_controller.rb:46:in `block in create'
app/controllers/screenshots_controller.rb:45:in `create'
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.17/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.17/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.17/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.1ms)
Gems:
Gems included by the bundle:
* actionmailer (3.2.17)
* actionpack (3.2.17)
* activemodel (3.2.17)
* activerecord (3.2.17)
* activeresource (3.2.17)
* activesupport (3.2.17)
* arel (3.0.3)
* builder (3.0.4)
* bundler (1.3.5)
* carrierwave (0.6.2)
* carrierwave-qiniu (0.0.9)
* coffee-rails (3.2.2)
* coffee-script (2.2.0)
* coffee-script-source (1.7.0)
* erubis (2.7.0)
* execjs (2.0.2)
* hike (1.2.3)
* i18n (0.6.9)
* journey (1.0.4)
* jquery-rails (2.0.2)
* json (1.8.1)
* mail (2.5.4)
* mime-types (1.25.1)
* mini_magick (3.4)
* multi_json (1.9.2)
* polyglot (0.3.4)
* qiniu-rs (3.4.9)
* rack (1.4.5)
* rack-cache (1.2)
* rack-ssl (1.3.4)
* rack-test (0.6.2)
* rails (3.2.17)
* railties (3.2.17)
* rake (10.2.2)
* rdoc (3.12.2)
* rest-client (1.6.7)
* ruby-hmac (0.4.0)
* sass (3.3.4)
* sass-rails (3.2.6)
* sprockets (2.2.2)
* sqlite3 (1.3.6)
* subexec (0.2.3)
* thor (0.19.1)
* tilt (1.4.1)
* treetop (1.4.15)
* tzinfo (0.3.39)
* uglifier (2.5.0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.