@user_array nil. Make sure that it is configured by many users to avoid this error message.
Alternatively, set @user_arrayto [](empty array) if you do not want to display any parameters in `select, eg .:
collection_select @user, :full_name, @user_array || [], :id,
{ prompt: 'true' }, { class: 'select' }
source
share