看到大家都说很厉害,可是翻墙都看不到,好想瞻仰下呀,求看到人把简历截个图回复下我、、、
#4 楼 @Eagle 代码里没有,我把完整的日志发给你看看:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
** Invoke db:_dump (first_time)
** Execute db:_dump
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:schema:dump
No Redis service bound to app. Skipping auto-reconfiguration.
Loading MongoDB auto-reconfiguration.
No MongoDB Library Found. Skipping auto-reconfiguration.
No MySQL service bound to app. Skipping auto-reconfiguration.
No PostgreSQL service bound to app. Skipping auto-reconfiguration.
No RabbitMQ service bound to app. Skipping auto-reconfiguration.
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support
for these plugins will be removed in Rails 4.0. Move them out and bundle them i
n your Gemfile, or fold them in to your app as lib/myplugin/* and config/initial
izers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required
)> at /var/vcap/data/dea/apps/spec_mongoid-0-0040c3bd9e2789749fd8f4a014f45974/ap
p/config/environment.rb:5)
SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
This poses a security threat. It is strongly recommended that you
provide a secret to prevent exploits that may be possible from crafted
cookies. This will not be supported in future versions of Rack, and
future versions will even invalidate your existing user cookies.
Called from: /var/vcap/data/dea/apps/spec_mongoid-0-0040c3bd9e2789749fd8
f4a014f45974/app/rubygems/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/m
iddleware/session/abstract_store.rb:28:in `initialize'.
Reading logs/stdout.log... OK
No Redis service bound to app. Skipping auto-reconfiguration.
Loading MongoDB auto-reconfiguration.
No MongoDB Library Found. Skipping auto-reconfiguration.
No MySQL service bound to app. Skipping auto-reconfiguration.
No PostgreSQL service bound to app. Skipping auto-reconfiguration.
No RabbitMQ service bound to app. Skipping auto-reconfiguration.
=> Booting WEBrick
=> Rails 3.2.9 application starting in production on http://0.0.0.0:14795
=> Call with -d to detach
=> Ctrl-C to shutdown server
Started GET "/" for 183.233.189.114 at 2013-04-18 07:30:28 +0000
Connecting to database specified by database.yml
Processing by AuthorsController#new as HTML
Rendered authors/_form.html.erb (5.2ms)
Rendered authors/new.html.erb within layouts/application (51.0ms)
Completed 200 OK in 85ms (Views: 84.8ms | ActiveRecord: 0.0ms)
Started POST "/authors" for 183.233.189.114 at 2013-04-18 07:30:37 +0000
Processing by AuthorsController#create as HTML
Parameters: {"utf8"=>"���", "authenticity_token"=>"uWY5eCYA5IkSS4hjd4luOoI4fw
SVwk2uxadhl2x1g0=", "author"=>{"name"=>"hello"}, "commit"=>"Create Author"}
Completed 500 Internal Server Error in 17ms
NoMethodError (undefined method `[]' for nil:NilClass):
app/controllers/authors_controller.rb:46:in `block in create'
app/controllers/authors_controller.rb:45:in `create'
Started GET "/authors" for 183.233.189.114 at 2013-04-18 07:32:11 +0000
Processing by AuthorsController#index as HTML
Rendered authors/index.html.erb within layouts/application (54.4ms)
Completed 500 Internal Server Error in 56ms
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
8: <th></th>
9: </tr>
10:
11: <% @authors.each do |author| %>
12: <tr>
13: <td><%= author.name %></td>
14: <td><%= link_to 'Show', author %></td>
app/views/authors/index.html.erb:11:in `_app_views_authors_index_html_erb__45
7789873894052545_28393640'
app/controllers/authors_controller.rb:7:in `index'
#10 楼 @Rei 打扰你一下,https://github.com/ruby-china/ruby-china/blob/master/app/assets/javascripts/topics.coffee#L35 这一行的 fileUpload 方法是哪里来的呀?