I have a model order and user.
user - has_many: order
order - belongs_to: user
I want to make a check on the order form.
<% if current_user%>
form where the name of the order form will be recorded from the user
<% else%>
regular order creation form
<% end%>
the task is how to write data of another model to the model?