# Problem with forms, Date\_Select and DateBocks

**URL:** <https://discuss.rubyonrails.org/t/problem-with-forms-date-select-and-datebocks/648>\
**Category:** rubyonrails-talk\
**Created:** [August 28, 2006, 6:27pm UTC](https://discuss.rubyonrails.org/t/problem-with-forms-date-select-and-datebocks/648 "2006-08-28T18:27:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel\_Brown](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@Nathaniel\_Brown](https://discuss.rubyonrails.org/u/Nathaniel_Brown)\
**Post date:** [August 28, 2006, 6:27pm UTC](https://discuss.rubyonrails.org/t/problem-with-forms-date-select-and-datebocks/648/1 "2006-08-28T18:27:32Z")

</div>

At the moment, DateBocks only accepts strings as a Model name.

So in the instance where you have...

\<%=datebocks\_field(:query, :start\_date) %\>

Try using

\<%=datebocks\_field('query', 'start\_date') %\>

If Query is the variable containing your model, and start\_date is the column.

-NSHB

---

<div class="post-metadata">

**Author:** ![Nathaniel\_Brown](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@Nathaniel\_Brown](https://discuss.rubyonrails.org/u/Nathaniel_Brown)\
**Post date:** [August 29, 2006, 10:38am UTC](https://discuss.rubyonrails.org/t/problem-with-forms-date-select-and-datebocks/648/2 "2006-08-29T10:38:43Z")

</div>

Hey Karen,

I added a enhancement request into the ticket tracker. This should be added as it's intuitive usage of almost all the helper methods in Rails.

[http://dev.toolbocks.com/tickets/32](http://dev.toolbocks.com/tickets/32)

Be sweet to hear how you are using Datebocks in your app, and maybe a url too? 🙂

-NSHB
