Hi,
I wonder how I should use the SET and ENUM data types in my MySQL
database combined with a rails application.
This is my current _form.rhtml file for products:
<%= error_messages_for ‘product’ %>
|
Name
<%= text_field 'product', 'name' %>
Collection
<%= text_field 'product', 'collection' %>
Statistics
<%= text_field 'product', 'statistics' %>
Quality
Sizes
Description dk
<%= text_area 'product', 'description_dk' %>
Description de
<%= text_area 'product', 'description_de' %>
Description gb
<%= text_area 'product', 'description_gb' %>
Comment
<%= text_area 'product', 'comment' %>
Image
<%= file_field 'product', 'image' %>
Quality is ENUM-type and sizes are the SET-type…
Any ideas how to handle these (or change the DB to something more useful
for rails).
|
Thanks
Preben