Change all redirect_to use resource