Validation of date_select

I'm new to ror. I need to check a date in a form.
I'm validating if the datefields (I used a date_select) are empty. In
case they are not all three fiels (d, m, y) get a red background, but
only the selectfield for the day gets red. How can I change the
background of all selectfields?
In a second step I check if the date is allowed (31th of february
isn't). Is it possible to change in this case the backgroundcolor of the
field for the day and the month?
thanks in advance

···

--
Posted via http://www.ruby-forum.com/.

Kim Quermann wrote:

I'm new to ror. I need to check a date in a form.
I'm validating if the datefields (I used a date_select) are empty. In
case they are not all three fiels (d, m, y) get a red background, but
only the selectfield for the day gets red. How can I change the
background of all selectfields?
In a second step I check if the date is allowed (31th of february
isn't). Is it possible to change in this case the backgroundcolor of the
field for the day and the month?
thanks in advance

A look into the Rails API documentation reveals this:

Though, you might want to ask the Rails community about this and Other
Rails related questions:
www.rubyonrails.com/community

They usually answer faster.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ "Dad buried in landslide! Jubilant throngs fill streets! Stunned
father inconsolable - demands recount!" -- Calvin

Thanks. I'll post my question there.

···

A look into the Rails API documentation reveals this:
ActiveRecord::Validations

Though, you might want to ask the Rails community about this and Other
Rails related questions:
www.rubyonrails.com/community

They usually answer faster.

--
Posted via http://www.ruby-forum.com/\.