In my Rails 5 app I want to have already filed text_field_tag by current_login.user.full_name. Additionally I want to pass current_login.user.id inside this text_field as params[:physician_id]. What I did is pretty simple:
<%= text_field_tag "physician_id", current_login.user.id, class: 'form-control', value: current_login.user.full_name, disabled: true %>
With this code I've got:
pry> params['physician_id']
=> nil
If I add <%= text_field_tag "physician_id", id: current_login.user.id (...) I've got:
pry> params['physician_id']
=> {:id=>70, :class=>\"form-control\", :value=>\"Gary KZM JohnsonR\", :disabled=>true}
How to pass this current_login.user.id as a params['physician_id'] inside text_field_tag? should I use something else?