I would like to use forms in Ruby on Rails and add current_user.username field as autocomplete. Currently I use the code, which does show the username, but after submitting the form, username does not go to the database and is not being presented in the final version of the form.
'''
<%= f.input :collectionnumber, :input_html => { :value => current_user.username }, label: false, disabled: true %>
'''