没有问题呀。。估计是你的数据库连接有问题?
直接运行 rake db:schema:load
写小玩具才是最快乐的:-)
你是医学相关专业的?
喜欢修 warning..
cap 这种 gem 我一般会加:require => false hpircot 和 nokogiri 应该是其他 gem 依赖的吧 你的日志输入后面的时间是怎么搞的?有啥方便的方法吗?
跑个题:我发现很多开发者对 gem 或插件的态度非常不同,一个极端是能自己写的就不用 gem,另外一个极端就是能用 gem 的绝不自己写,即使一行代码就搞定的需求。
route 和 controller 分离是很好的设计呀 找的时候可以 rake routes 一下,如果目录结构清晰的话直接就找到了... Rails 的 route 还可以 mount 其他 rack app,namespace 和 scope 更是 DRY 和模块化的利器
Rails3.2 引入了 journey(https://github.com/rails/journey )看样子是在做 route 的性能优化
我觉得还可以猜。。 try retry 直到猜对........
轻量级的好多呀 不过都需要自己去根据实际需求去衡量 1.system 2.fork 3.eventmachine
使用了 bundler 就不需要 gemset 了呀 gemset 主要用于 Rails2
Internal server error
Passenger encountered the following error:
The application spawner server exited unexpectedly: No space left on device
Exception class:
PhusionPassenger::Railz::ApplicationSpawner::Error
Backtrace:
# File Line Location
0 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 218 in `start'
1 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application'
2 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add'
3 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application'
4 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 80 in `synchronize'
5 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
6 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application'
7 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 154 in `spawn_application'
8 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application'
9 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 352 in `__send__'
10 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 352 in `main_loop'
11 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 196 in `start_synchronously'
12 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11/bin/passenger-spawn-server 61
Powered by Phusion Passenger, mod_rails / mod_rack for Apache.
是不是被你们访问挂了? 据说他们喜欢用 Rails1.2
没看懂你的需求..
好吧
这是个大 Bug!