Im writting a web-page in Ruby on Rails , so i can learn the language and framework better.
I have a
User model which
Classifieds models which
So the whole thing works fine , the User creates the Classified , adds details and photos . User model and Classifieds model CRUD are implemented and running!
Now that the basic functionality is ok , i want to start implementing categorization and search.
One option is to create a
Category model which
Another option has to do with
Tags like this tutorial provides: https://www.sitepoint.com/tagging-scratch-rails/
Keep in mind that this is not a general classifieds site, it's specifically for musicians and musical instruments / services.
When using the site , you should be able to browse classifieds
- By searching
- By navigating from a navbar which will have the categories.
What is the best way to tackle this ?
- Should i have a lot of predifined tables in my db (subcategories) from which i auto fill forms on classified creation?
- Should i just implement Tags , and just save the forms (which gives the user more flexibility on data entry)?
Generally im kind of scratching my head about this and what would be the best way to do it.
Thanks in advance :)