I have a model product that has an association belonging to another model. In the product form, I use formtastic to display the select tag with all types available in the database, for example:
<%= f.input :type %>
The selection is displayed OK, but each of them is an instance of the type model object as a string, for example:
#<Type:0x00eff180c85c8>
Instead, I would like to display the attribute 'title', for example:
Electronic Domestic ...
Any ideas?
source share