Rails magic post