# Styling the date\_select objects

**URL:** <https://www.ruby-forum.com/t/styling-the-date-select-objects/137101>\
**Category:** Rails\
**Created:** [May 8, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/styling-the-date-select-objects/137101 "2008-05-08T23:06:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 8, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/styling-the-date-select-objects/137101/1 "2008-05-08T23:06:38Z")

</div>

Hello People,

jsut wanted to know how I could add style to the date\_select helper  
objects. I’m currently using the style option ( :style =\> ‘’ … " )  
but this isn’t working. Anyone could help me with that issue.

Best Regards,

Joel

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 9, 2008, 3:20am UTC](https://www.ruby-forum.com/t/styling-the-date-select-objects/137101/2 "2008-05-09T03:20:58Z")

</div>

Here’s just one example I ran across:  
[http://www.456bereastreet.com/lab/form\_controls/select/](http://www.456bereastreet.com/lab/form_controls/select/)

Although it’s nice having those helpers and they work fine in many  
cases, I generally prefer to forgo them altogether for public facing  
web sites and go with something a lot more flexible. I have used the  
Zapatec [zapatec.com](http://www.zapatec.com/website/main/products/prod1/index.jsp)  
JavaScript calendar widget with good success.

Unfortunately, getting the resulting date into the database takes a  
little bit of work on the controller side, since you don’t get the  
automatic parsing of the date into the database as with the  
date\_select helpers. This provides a much nicer user experience in my  
opinion. And if it takes a little bit more work on my part to give my  
users a great experience then I call that a win.
