add gems, fix Rails dependency error