SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru Skyblaze's Avatar
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    734
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Create a form on the fly based on validations...

    How can i make a form (associated with a model) that initially displays say one input element and then, based on the success of that element/attribute rails validation, it displays the rest of the form. The initially displayed input element could be an attribute to store a product code that the user enter for each product and it has a rails validation to be sure that only one row at a time in the database has a particular value in this column.

  2. #2
    SitePoint Zealot lord's Avatar
    Join Date
    Nov 2003
    Location
    sLOVEnia
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I still learn by the sitepoints book, but I will recommend you to try with ajax aproach ... use partials and update your rhtml page with additional data when users product code is ok.

    hope this will help


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
  •