how to config in rails3