Use local variable in partial