ERB and binding in template

How to get current binding in a partial (to use helpers and local
variables in erb script)?

When I invoke result whithout binding,

= ERB.new("script").result.html_safe

all work (without vars are needed), but when I write

= ERB.new("script").result(binding).html_safe

(in HAML HTML partial), THE PARTIAL'S REST OF OUTPUT IS CLEAR.

What is the problem?