JC: fixed view error with @erb_code inline.