Results 1 to 2 of 2
Thread: validation without active record
Jul 12, 2006, 01:58 #1
- Join Date
- Jul 2006
- 0 Post(s)
- 0 Thread(s)
validation without active record
I have a problem when I'm developing with ruby on rails. I have 2 input text that I created by looping.
These text_field are not related with database or active record so I can't use validation helper provided by Active Record.
<%= textfield "game", "rpg" %>
<%= textfield "game2", "rpg2" %>
I want to validate these forms to prevent user insert same value or prevent user to keep empty.
Anybody know how to do it?