Làm cách nào để ngăn Rails đăng nhập quá nhiều? Đây là một dấu vết điển hình trong tập tin production.log của tôi, nhiều partials, truy cập bộ nhớ cache ... Nó rất hữu ích trong phát triển nhưng tôi không muốn nó trong môi trường sản xuất của tôi.Đường ray ghi quá chi tiết
Started GET "/?redirected=true" for 46.193.131.53 at 2012-08-16 18:39:20 +0200
Processing by HomeController#index as HTML
Parameters: {"redirected"=>"true"}
Rendered application/_successfully_connected.html.haml (0.8ms)
Rendered hotspot_infos/_infos.html.haml (0.4ms)
Rendered application/_hotspot_infos.html.haml (1.8ms)
Rendered application/_news.html.haml (0.3ms)
Read fragment views/social-zone-341-directory (0.5ms)
Rendered application/_directory.html.haml (2.5ms)
Rendered application/_meteo.html.haml (1.1ms)
Rendered application/_notifications.html.haml (0.8ms)
Rendered application/_like_button.html.haml (0.3ms)
Rendered application/_navbar.html.haml (4.2ms)
Rendered application/_connection.html.haml (0.5ms)
Rendered application/_gallery.html.haml (0.2ms)
Rendered application/_search_bar.html.haml (0.4ms)
Rendered pictures/_picture_frame.html.haml (0.3ms)
Rendered application/_profile_preview.html.haml (1.4ms)
Rendered application/_profile_block.html.haml (1.7ms)
Rendered application/_menus.html.haml (3.3ms)
Rendered application/_left_pane.html.haml (5.5ms)
Rendered application/_langs.html.haml (0.8ms)
Rendered application/_footer.html.haml (1.9ms)
Rendered application/_flash_modal.html.haml (0.1ms)
Rendered application/_connection_required.js.erb (0.2ms)
Completed 200 OK in 159ms (Views: 25.5ms | ActiveRecord: 88.0ms)
Thank của bạn đã giúp đỡ
PS: Tôi đang sử dụng Rails 3.2.6
Sử dụng ** [Lograge] (https://github.com/roidrage/lograge) **, tốt nhất đá quý Tôi đã tìm thấy để làm sạch đăng nhập Rails – Yarin