PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > validation of date_select
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
validation of date_select

Réponse
 
LinkBack Outils de la discussion
Vieux 11/05/2008, 12h32   #1
Kim Quermann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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/.

  Réponse avec citation
Vieux 11/05/2008, 12h50   #2
Phillip Gawlowski
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: validation of date_select

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:
http://api.rubyonrails.org/classes/A...lidations.html

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgm3W8ACgkQbtAgaoJTgL9w4wCfTJyHdb5U1k CQ9kJPqHH1Akv0
g+YAni0NQtunQFU4636Yz6Gb5cBB4hF/
=Beru
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 11/05/2008, 13h18   #3
Kim Quermann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: validation of date_select

Thanks. I'll post my question there.


> A look into the Rails API documentation reveals this:
> http://api.rubyonrails.org/classes/A...lidations.html
>
> 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/.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 3,67188 seconds with 11 queries