# select\_date

**URL:** <https://discuss.rubyonrails.org/t/select-date/26428>\
**Category:** rubyonrails-talk\
**Created:** [March 17, 2008, 11:22am UTC](https://discuss.rubyonrails.org/t/select-date/26428 "2008-03-17T11:22:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [March 17, 2008, 11:22am UTC](https://discuss.rubyonrails.org/t/select-date/26428/1 "2008-03-17T11:22:29Z")

</div>

i have one field date in ruby mysql database.. &nbsp;&nbsp;i use select\_date tag in view.. &nbsp;&nbsp;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:** ![AndyV1](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@AndyV1](https://discuss.rubyonrails.org/u/AndyV1)\
**Post date:** [March 17, 2008, 1:00pm UTC](https://discuss.rubyonrails.org/t/select-date/26428/2 "2008-03-17T13:00:39Z")

</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)?

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [March 17, 2008, 1:53pm UTC](https://discuss.rubyonrails.org/t/select-date/26428/3 "2008-03-17T13: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.
