我开始重构Rails应用,每次在管理菜单中打开链接时,都会出现此错误:
No renderer defined for format: amp
查看我拥有的日志文件
Started GET "/admin/videos" for 127.0.0.1 at 2018-12-16 12:24:30 +0100
Processing by Admin::VideosController#index as AMP
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
Role Load (0.6ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'editor') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 1]]
Completed 500 Internal Server Error in 69ms (ActiveRecord: 1.0ms)
ActionController::MissingRenderer (No renderer defined for format: amp):
我不知道:为什么要查找amp页面?
我有initilizers / myme_types.rb
Mime::Type.register 'text/html', :amp
但是我从不在管理页面上使用amp ...