fixing errors in foundation setup in rails environment