Now works in rails production envioronment