我正在为活动创建一个网页;事件部分工作,但我收到一个错误,Ruby无法从网站首页查找数据库查询事件的路径。
该名称显示正确,但是当您单击该链接时,它会刷新到同一页面,并显示以下错误:
ActionController::RoutingError (No route matches [GET] "/new/script.js"):
actionpack (4.0.2)
这些是我的路线
Prefix Verb URI Pattern Controller#Action
new_page GET /new/page(.:format) new#page
root GET / events#index
front_page GET /front/page(.:format) front#page
events GET /events(.:format) events#index
POST /events(.:format) events#create
new_event GET /events/new(.:format) events#new
edit_event GET /events/:id/edit(.:format) events#edit
event GET /events/:id(.:format) events#show
PATCH /events/:id(.:format) events#update
PUT /events/:id(.:format) events#update
DELETE /events/:id(.:format) events#destroy