原创 #102 Auto-Complete Association

Usually a select menu is used for setting a belongs_to association, but in

原创 #103 Site Wide Announcements

Sometimes you need to display an administrative announcement to every page

原创 #92 make_resourceful

The make_resourceful plugin is a great way to DRY up the 7 RESTful actions

原创 #106 Time Zones in Rails 2.1

In the past, time zones have been very difficult to work with, but no longe

原创 #104 Exception Notifications

If you're running a production site, it's a good idea to record all excepti

原创 #125 Dynamic Layouts

Discover how to dynamically change the layout using content in the database. Check out this episode for

原创 #116 Selenium

Selenium is a great way to test your app automatically through a browser. See how it works in this epis

原创 #117 Semi-Static Pages

Static pages can sometimes be a little awkward to add to a Rails app. See a couple different solutions

原创 萬惡的"delete",慎用數組的delete

一直以來我的網站存在着一個令人很崩潰的問題。就是用戶上傳的圖片會丟失。而且是連帶相冊一起丟失。開始還以爲是什麼地方誤刪了,衝突了。查了很久很久無果。關鍵是這個BUG並不是一定出現。而且,我測試時就從來沒碰到

原创 #123 Subdomains

Learn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episod

原创 #124 Beta Invitations

You know those invitation systems where a given user can invite a number of other people to join? That'

原创 #111 Advanced Search Form

If you need to create an advanced search with a lot of fields, it may not be ideal to use a GET request

原创 修改edit_in_place插件,將“(點擊編輯)”放入內容中

edit_in_place確實是個不錯的效果。但是對於 主流用戶 來說,輸入框還有優於它的。爲什麼呢?因爲你EIP在那,很多人不知道是可以點擊修改的。好吧。你說後面加個提示,行,然後發現用戶華麗的去點後面的

原创 #107 Migrations in Rails 2.1

Migrations now have a timestamp as their version number in Rails 2.1. In this episode I will explain th

原创 #121 Non Active Record Model

This episode will show you how to make a model which isn't based on Active Record. You may want to do t