0

我在家里的 mac 上开发了一个基于 rails 4.0.0 的应用程序。一个非常优秀的学者帮助我完成了它的最后一部分,并在今天早上将我修改后的项目的 zip 发给了我。

我用来做rails dev stufs的linux系统是rails 3.2.6。

我无法让应用程序在其上运行。当我执行 rake db:migrate 时,出现以下错误:

ironmantis7x@ironscribe5:~/RoR_projects/mock_devices2$ rake db:migrate
rake aborted!
can't convert String into Hash
/home/ironmantis7x/RoR_projects/mock_devices2/config/routes.rb:10:in `block in <top (required)>'
/home/ironmantis7x/RoR_projects/mock_devices2/config/routes.rb:1:in `<top (required)>'
/home/ironmantis7x/RoR_projects/mock_devices2/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
ironmantis7x@ironscribe5:~/RoR_projects/mock_devices2$ ^C
ironmantis7x@ironscribe5:~/RoR_projects/mock_devices2$ 

这是我的 routes.rb 文件:

MockDevices2::Application.routes.draw do
  resources :devices

  resources :posts

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  root 'posts#index'

end

谁能帮我理解我哪里出错了?

谢谢!!

铁螳螂7x

4

0 回答 0