Fix the :erb filter in rails.

See issue #654.

Fixes an issue where using the :erb filter multiple times in a rails view results in subsequent calls including output from previous calls.