Forum: Ruby on Rails Help with basic category setup

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3bc555eb01bf510bf098c07b7db543cc?d=identicon&s=25 CPerry (Guest)
on 2007-07-05 16:13
(Received via mailing list)
Hey all, I have created a small app that collects links submitted by
users. I have now decided that I want to categorize those links into
several different categories.

Being very new to Rails, I am unsure as to how to go about doing this.
I want to create a predefined list of categories, and when the user
submits a new link, they choose the category from a dropdown list.

I assume that I will need a Category model, but how do I define that
predetermined list of categories in the model? Can anyone point me in
the right direction as to the best way to do this? Maybe some sample
code snippets? Thanks!
This topic is locked and can not be replied to.