SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: validation without active record
-
Jul 12, 2006, 02:58 #1
- Join Date
- Jul 2006
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
validation without active record
Hello guys,
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?
Thanks
-
Jul 12, 2006, 19:28 #2
- Join Date
- Jun 2006
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Perhaps try the Validator Plugin.
I think this is my first post, so you'll have to google the link (hint: it's on the Ruby on Rails wiki)
Bookmarks