ApiError: page.failure: NoMethodError : undefined method `redirect_to' for #<Hilv1::ErbContext:0x00007f8eb2d3da18>