Errore: Admin is not missing constant Publisher!

Ciao a tutti,
ho una relazione has_and_belongs_to_many tra due tabelle.
Non capisco perchè quando nel tag HTML select metto

<%= collection_select(:document, :publisher_ids, Publisher.find(:all),
:id, :nickname, {:prompt => “-Select who can read”}, :multiple => true,
:class =>“sel”) %>

l’insert nella tabella documents_publishers funziona alla grande, mentre
se scrivo

<%= collection_select(:document, :publisher_ids,
Admin::Publisher.find(:all), :id, :nickname, {:prompt => “-Select who
can read”}, :multiple => true, :class =>“sel”) %>

Admin::Publisher.find(:all) mi solleva l’errore “Admin is not missing
constant Publisher!”

Grazie mille per l’attenzione.

Saluti

Alberto

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs