# What does option\_tags = nil mean?

**URL:** <https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154>\
**Category:** Rails\
**Created:** [April 28, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154 "2007-04-28T12:17:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a9a28c/32.png) [@pingu](https://www.ruby-forum.com/u/pingu)\
**Post date:** [April 28, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154/1 "2007-04-28T12:17:03Z")

</div>

Hi, in the context of:

select\_tag(name, option\_tags = nil, options = {})

what does option\_tags = nil mean?, specifically setting it to nil, does  
it men its optional?  
Thanks

---

<div class="post-metadata">

**Author:** ![pingu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a9a28c/32.png) [@pingu](https://www.ruby-forum.com/u/pingu)\
**Post date:** [April 28, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154/2 "2007-04-28T12:36:08Z")

</div>

Pingu P. wrote:

> Hi, in the context of:
> 
> select\_tag(name, option\_tags = nil, options = {})
> 
> what does option\_tags = nil mean?, specifically setting it to nil, does  
> it men its optional?

Yes, it sets the default value of option\_tags to nil, meaning if the  
user of the function does not provide a second and third argument, the  
values of option\_tags is nil and the value of options is an empty hash.

Jonathan

–  
Jonathan W.  
[http://blog.innerewut.de](http://blog.innerewut.de)

---

<div class="post-metadata">

**Author:** ![pingu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a9a28c/32.png) [@pingu](https://www.ruby-forum.com/u/pingu)\
**Post date:** [April 28, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154/3 "2007-04-28T13:04:22Z")

</div>

Many thanks.
