for rails3