SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    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

  2. #2
    SitePoint Member
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •