Jetpack Blog 10/14 整理了一篇 High Quality Ruby on Rails Example Applications
練功時可以參考別人的寫法
- 10月 16 週五 200914:38
[Basic] 一些新手學習 rails 可以當做 example 的 application
- 10月 16 週五 200914:34
[Scale] Scale Frontend 應該注意的五件事
EngineYard Blog 10/13 發表的一篇文章:Rails in the Wild: 5 Client-Side Performance Observations
五個重點:
1. Its easy to forget to compress your JavaScript and CS
- 10月 16 週五 200914:14
[寄信] 使用 Mad Mini 發送電子報
這是今天在 EnvyLab 看到的一篇文章所提到的新 starup Mad Mini
一般傳統寄信的做法通常是靠 ActionMailler 去寄不過 ActionMailer 本身有相當多的問題,大量使用會有維護上的困難
這篇文章的建議是使用 Mad Mini API 取代掉 deliver me
- 10月 14 週三 200918:50
[Scale] 使用不同 backend 做 Cache
在開發時,使用 partial 是相當簡潔以及迅速的做法但這會帶來一個壞處造成相當多的 db query 以及 render :partial 這個行為帶來的 slow down
解法是,在 controller 下 find all 時,順便下 :include ,把相關的 model 都拉一拉
- 10月 14 週三 200918:46
[Scale] Rails 接 cluster db
使用 Data Fabric 這個 gem
這個 gem 的想法是建一個 proxy,先去問 mapping table,然後要資料時 reset db connection 去該負責的 db 拿資料
- 10月 14 週三 200918:44
[Scale] Rails Application 接兩個以上的 db
Splitting up Rails Models to different databases
然後在 lib/tasks/dev.rake 裡寫 override db:create; db:drop 的 rake; 確保重建資料時一致
- 10月 04 週日 200917:31
[Trick]多重 asset_host
可指定 asset_host 為
或
Yehuda 在 WindyCindyRails 2009 分享的技巧
- 9月 09 週三 200910:00
Plugin: Oink
Description
Rails plugin and log parser to help narrow down the sources of increased memory usage in rails applications.
Synopsis
Oink adds memory and
- 9月 04 週五 200916:33
[懶人] Magick Installer
因為 rmagick 在 MacOS 下實在太難裝了於是有人寫了一支 script 來處理這種惱人的事
- 9月 03 週四 200911:15
[Scale] 在 Rails Project 對 Database 打 index 應該注意的一些事項
Matt Jankowski provided a great article on properly indexing your database for your Rails application. He covers indexing validation and STI columns,