Ruby on Rails: Create a Select Drop Down from an Array
Posted in code on Jan 13th, 2008
Problem: You wish to populate a “collection_select” box with an Array. I recently had an issue where I wanted to create a select box populated from an array of continuous years. I wanted to use thecollection_select method so it would have a minimal “code footprint” and play nice with the form that I had built. [...]