In my form template I have this snippet:
<%= label f, :event_banner_image %> <%= file_input f, :event_banner_image %> <%= error_tag f, :event