say i have five columns of type integer like: age, book_number, 
page_number, number_of_pages, number_of_people
and instead of doing this
validate_numericality_of :age, :book_number, :page_number, 
:number_of_pages, :number_of_people

I want to name all columns that are of type integer to an array and for 
every element of that array validate if its a number or not

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to