I want to let a profile have many websites (as just a url string), and for a user to fill in the websites into different text fields. However, I want this to be an attribute of the profile resource as opposed to its own resource. How can I set this up and how would I have access to the website strings in the profile view?
Share
If you will not need to search through these URL strings, look into serialize.
http://api.rubyonrails.org/classes/ActiveRecord/Base.html
Serialize enables you to store multiple URLs in just one string. If, however, you want to be able to search through these URLs, I recommend you do go with a simple
Websitetable withidandurlfields.Good luck!