A controller's purpose is to receive specific requests for the application.
Yummi-loader - 0 views
Getting Started with Rails - Ruby on Rails Guides - 0 views
-
-
Routing decides which controller receives which requests
-
The view should just display that information
- ...55 more annotations...
Ruby on Rails 實戰聖經 | 網站效能 - 0 views
-
依照慣例是_count結尾,型別是integer,有預設值0。
-
lol_dba提供了Rake任務可以幫忙找忘記加的索引。
-
Bullet是一個外掛可以在開發時偵測N+1 queries問題。
- ...19 more annotations...
You Might Not Need JavaScript - 0 views
Apache 中 KeepAlive 配置的合理使用 - 煎炸熊の記事本 - 0 views
-
KeepAlive 配置指令決定當處理完用戶發起的 HTTP 請求後是否立即關閉 TCP 連接,如果 KeepAlive 設置為On,那麼用戶完成一次訪問後,不會立即斷開連接,如果還有請求,那麼會繼續在這一次 TCP 連接中完成,而不用重複建立新的 TCP 連接和關閉TCP 連接,可以提高用戶訪問速度。
-
那麼我們考慮3種情況: 1。用戶瀏覽一個網頁時,除了網頁本身外,還引用了多個 javascript 文件,多個 css 文件,多個圖片文件,並且這些文件都在同一個 HTTP 服務器上。 2。用戶瀏覽一個網頁時,除了網頁本身外,還引用一個 javascript 文件,一個圖片文件。 3。用戶瀏覽的是一個動態網頁,由程序即時生成內容,並且不引用其他內容。 對於上面3中情況,我認為:1 最適合打開 KeepAlive ,2 隨意,3 最適合關閉 KeepAlive
-
假設 KeepAlive 的超時時間為 10 秒種,服務器每秒處理 50個獨立用戶訪問,那麼系統中 Apache 的總進程數就是 10 * 50 = 500 個,如果一個進程佔用 4M 內存,那麼總共會消耗 2G內存
plataformatec/simple_form - 0 views
-
The basic goal of Simple Form is to not touch your way of defining the layout
-
by default contains label, hints, errors and the input itself
-
Simple Form acts as a DSL and just maps your input type (retrieved from the column definition in the database) to a specific helper method.
- ...68 more annotations...
‹ Previous
21 - 28 of 28
Showing 20▼ items per page