On Miércoles, 16 de Septiembre de 2009 20:55:24 alexp escribió:
> I know this is rather easy to solve but doesnt AS already do this -
> avoid the user pressing f5 on a page to create 100's of records, I
> also find that if there is an error in the posting - i..e validation
> check on a missing field that AS ACTUALLY creates a record from the
> subfrom before the  parent form is correct - wow, not what I
> expected.  I checked the db and it is scattering partially saved
> information into the db, e.g.

I can't reproduce it, what AS version are you using?

>
> I dont want to have unique data in a table/model but a user has 2
> forms, parent and sub form.  completes the parent form and an error is
> thrown stating - field cant be blank.  the subform in the meantime has
> created a record.  the parent form is then fixed and saved and the
> user presses f5 to see the results. = 3 subform records, 2 parent
> records...

I can't reproduce too, refreshing the page doesn't create another record. I'm 
trying with two simple models, with has_many/belongs_to relationship.

>
> Going to give up using AS, more and more issues that are costing time
> to understand, yucck yuck yuck.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to