Ruby on Rails - How to represent "has_many" with enums? -


what's best solution in rails 3.2 app represent this:

appointment = appointment.first appointment.days_of_the_week = [monday, friday] 

you can have @ embedded association railscast ryan bates explains how use bitmasks avoid use of table, think idea in case.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -