<%= simple_form_for @user do |f| %> <%= f.input :avatar, as: :pretty_file_input %> <%= f.button :submit, 'Submit' %> <% end %>