setup basic rails codes