flushed out rails code...