Colin Law wrote:
> 2009/11/9 Heinz Strunk <[email protected]>:
>>
>> No no no, you understood me wrong. It's just a form where you can add
>> users to the object that is being created. It's a form, you click on add
>> user you go to another page, add as many users as you want, go back to
>> the main form.
>> I need to know how many users have been added, which ones and if the
>> maximum is reached.
>>
>> Is it more clear now?
> 
> Yes, in that case I would use the session, if you are really sure you
> can't just update the db as you go along.  What is the issue with just
> updating the db as you go?  The user will get really hacked off if he
> spends half an hour entering multiple forms only to lose it all when
> he loses connection for some reason.
> 
> Colin

Well, good point but I'm not sure if I unerstood what you exactly mean 
by update db as you go. The group and it's users (which are being added 
in the sub form) have a m:n-relation so you'd create that relaion for 
each and every user being added and delete it again if something goes 
wrong or the user hits the cancel button? Looks like a lot of 
unnecessary db traffic to me. Or would you create another table only for 
the temp data?
-- 
Posted via http://www.ruby-forum.com/.

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

Reply via email to