# Select\_date

**URL:** <https://www.ruby-forum.com/t/select-date/132144>\
**Category:** Rails\
**Created:** [March 17, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/select-date/132144 "2008-03-17T12:22:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhadip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Post date:** [March 17, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/select-date/132144/1 "2008-03-17T12:22:29Z")

</div>

i have one field date in ruby mysql database…  
i use select\_date tag in view…  
please help to write simple controller code(QUERY\_\_ which fetch data  
from datbase…  
pleaes provide one simple code…very urgent…

---

<div class="post-metadata">

**Author:** ![subhadip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Post date:** [March 17, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/select-date/132144/2 "2008-03-17T14:01:38Z")

</div>

Can you provide some more information about the parameters of the  
query? Are you using ActiveRecord to model your domain? What is the  
name of the model? How is the date field supposed to effect the query  
(everything before that date, everything since that date)?

On Mar 17, 7:22 am, Subhadip Chakraborty \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![subhadip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Post date:** [March 17, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/select-date/132144/3 "2008-03-17T14:53:06Z")

</div>

AndyV wrote:

> Can you provide some more information about the parameters of the  
> query? Are you using ActiveRecord to model your domain? What is the  
> name of the model? How is the date field supposed to effect the query  
> (everything before that date, everything since that date)?
> 
> On Mar 17, 7:22 am, Subhadip Chakraborty \<rails-mailing-l…@andreas-  
> thanks.  
> name of the model is info…have one select\_date or date\_select tag…  
> i select one date from the list…and press submit…and  
> in will fire one query related to this selected date and show every  
> information related to this date…pls give some code…how will  
> we procedd.
