It works out and shows where the error is
- if @star.errors.any?
div class="alert alert-danger"
ul class="mb-0"
- @star.errors.each do |message|
li
= message
but I want to see a complete error...
- if @star.errors.full_messages.any?
div class="alert alert-danger"
ul class="mb-0"
- @star.errors.full_messages.each do |message|
li
= message
then I get an error

I think that this error is here.
@star.errors: #ActiveModel:Errors = [#ActiveModel::Error attribute=user, type=blank, options={:message=>:required}, #ActiveModel::Error attribute=user_id, type=blank, options={}, ...]