ruby on rails - How to best model survey forms -


i want create 2 types surveys, presurvey , postsurvey, users can fill out. each survey type have same questions. what's best way model 2 surveys?

having each survey model have different field each question seems bad design because it's hard maintain , extend.

i'm trying create survey model has_many questions, , have presurvey , postsurvey inherit it. seems it's right path, can't figure out how force instances of 1 type of survey specificy questions there. time presurvey created, have same set of questions in it. how can force behavior?

sorry less specific questions asked here, if point me in right direction appreciate it.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -