# Need suggestions on how to extend collection\_select in form

**URL:** <https://www.ruby-forum.com/t/need-suggestions-on-how-to-extend-collection-select-in-form/132053>\
**Category:** Rails\
**Created:** [March 16, 2008, 3:11am UTC](https://www.ruby-forum.com/t/need-suggestions-on-how-to-extend-collection-select-in-form/132053 "2008-03-16T03:11:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [March 16, 2008, 3:11am UTC](https://www.ruby-forum.com/t/need-suggestions-on-how-to-extend-collection-select-in-form/132053/1 "2008-03-16T03:11:55Z")

</div>

My goal: Offer the oportunity to extend the given options of a  
collection\_select with custom text within a form

My problem: The collection’s ressource is the same the form data will  
be saved to, so I cannot update the corresponding collection prior to  
submitting the form as a whole.

Has anyone a smart and simple solution to that?

---

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [March 16, 2008, 3:17am UTC](https://www.ruby-forum.com/t/need-suggestions-on-how-to-extend-collection-select-in-form/132053/2 "2008-03-16T03:17:46Z")

</div>

On Sat, 2008-03-15 at 19:11 -0700, jawosis wrote:

> My goal: Offer the oportunity to extend the given options of a  
> collection\_select with custom text within a form
> 
> My problem: The collection’s ressource is the same the form data will  
> be saved to, so I cannot update the corresponding collection prior to  
> submitting the form as a whole.
> 
> Has anyone a smart and simple solution to that?

* * *

in the controller, before you save…

params[:form\_name].delete(“field\_name”)

Craig
