以下是输入日志:
Started GET "/" for 127.0.0.1 at 2015-10-09 20:11:08 +0800
Started GET "/" for 127.0.0.1 at 2015-10-09 20:11:08 +0800
ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
Processing by Portal::HomesController#index as HTML
Processing by Portal::HomesController#index as HTML
google 一下 rails request twice one action 发现很多个结果,但是都是在说对 js 的加载了两次。
问题是我没有用到 js 的功能 只是一个简单的请求到 index
action .求解
--------------------------------分割线--------------------------------------------- application.html.erb 中部分配置:
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>