There's a lot happening on this line. Would clean things up to have at least the #options_for_select logic in a helper method.