how to trim the 0

And if you don't need to save the value in an instance variable just:

    render_text @a.gsub(/^EDIA0*/, '')

I've got no idea what @a and @t represent, or whether they should
really BE instance variables or locals.

One strong suggestion to the OP is to use meaningful variable names.