我对 Rails 很陌生,而且我的模型中有这个
PreGit::Application.routes.draw do
resources :microposts
resources :users
match '/help', to:'static_pages#help'
match '/about', to:'static_pages#about'
match '/contact', to:'static_pages#contact'
root_path => '/'
root_url => 'http://localhost:3000/'
end
但是在运行时bundle exec rake db:migrate
我得到了:
syntax error, unexpected tSYMBEG, expecting kDO or '{' or '('
match '/help', to:'static_pages#help'
^
有人可以帮忙