Hi all,
I’m running an application on my localhost, but the command “rails
server”
behaves very inconsistently. About an hour ago it ran well on another
app,
but got errors now.
According to the errors it seemed that the server began to run but the
there is something missing in the library. But I’m very new to Rails so
cannot figure out what do these lines mean:
129-97-231-189:rewrite liujunjun$ rails server
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in
load': /Users/liujunjun/rewrite/config/routes.rb:11: syntax error, unexpected kDO, expecting $end (SyntaxError) from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in
load’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in
load_dependency' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in
new_constants_in’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in
load_dependency' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in
load’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/routes_reloader.rb:29:in
load_paths' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/routes_reloader.rb:29:in
each’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/routes_reloader.rb:29:in
load_paths' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/routes_reloader.rb:13:in
reload!’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/routes_reloader.rb:7:in
initialize' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/file_update_checker.rb:32:in
call’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/file_update_checker.rb:32:in
execute_if_updated' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/finisher.rb:63 from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/finisher.rb:64:in
call’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application/finisher.rb:64
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/initializable.rb:30:in
instance_exec' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/initializable.rb:30:in
run’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/initializable.rb:55:in
run_initializers' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/initializable.rb:54:in
each’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/initializable.rb:54:in
run_initializers' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/application.rb:96:in
initialize!’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in
send' from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in
method_missing’
from /Users/liujunjun/rewrite/config/environment.rb:5
from /Users/liujunjun/rewrite/config.ru:4:in require' from /Users/liujunjun/rewrite/config.ru:4 from /Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:51:in
instance_eval’
from
/Users/liujunjun/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:51:in
initialize' from /Users/liujunjun/rewrite/config.ru:1:in
new’
from /Users/liujunjun/rewrite/config.ru:1
Thanks you very much!
Regards,
Erica (XU Ziyin)
email: [email protected] [email protected]
School of Accounting and Finance &
Cheriton School of Computer Science
University of Waterloo