DEV Community

Discussion on: What's the best way to render specific items from a Rails collection?

 
rpalo profile image
Ryan Palo

Actually, now that I type that out loud, it gets me thinking that I should probably just make some sort of Group/Category model and render cocktails grouped by Category. Less hard-coding, reasonably easy to implement. Not sure. I seem to have gotten off track from my original question, but I feel like I've got several good options to go forward with.

Thread Thread
 
rhymes profile image
rhymes

Yep! You can also just have a category field for them if category has no other associated metadata.

Thread Thread
 
rpalo profile image
Ryan Palo

Ooh good point. Hm. OK I have some thinking to do. Thank you for your help!