# Datetime\_select options! Where can I see them listed?

**URL:** <https://www.ruby-forum.com/t/datetime-select-options-where-can-i-see-them-listed/142889>\
**Category:** Rails\
**Created:** [July 12, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/datetime-select-options-where-can-i-see-them-listed/142889 "2008-07-12T20:35:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [July 12, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/datetime-select-options-where-can-i-see-them-listed/142889/1 "2008-07-12T20:35:08Z")

</div>

Hi

I am trying to show a datetime through the datetime\_select method. I  
want to show a datetime input from the current year and month onward,  
but I need to know the options available for this method to do this.

datetime\_select(object\_name, method, options = {}, html\_options = {})

Where can I see this options hash? I don’t know where to look for it in  
the API. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [July 12, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/datetime-select-options-where-can-i-see-them-listed/142889/2 "2008-07-12T20:48:48Z")

</div>

Hi Elias,

Elias O. wrote:

> datetime\_select(object\_name, method, options = {}, html\_options = {})
> 
> Where can I see this options hash? I don’t know where to look for it in  
> the API. Thanks for the help.

The explanation’s in the date\_select method. In general, when the  
documentation for a specific method in a module doesn’t tell you what  
you  
need, it’s often spread among one or more of the other methods in the  
same  
module. When that doesn’t get it, there’s Google 😉

HTH,  
Bill
