$InputFileFacility <% @facility %> should be $InputFileFacility <%= @facility %> MIssing the "=" symbol