Tuesday, November 20, 2012

[Rails] Re: Re: Re: Multiple models and views in 'transactions'

Hassan Schroeder wrote in post #1085530:
> On Tue, Nov 20, 2012 at 8:12 AM, mongeta 99 <lists@ruby-forum.com>
> wrote:
>> Thanks for your replays, but the main point I'm asking here is how I can
>> isolate all this new/update nested records using multiple modals and
>> views:
>
> I guess I don't understand the problem. Originally you said:
>
>> We have 5 models that are nested/related between them, and all must be
>> created/updated/destroyed in block, like a transaction.
>
> So why don't you just use transactions when you interact with them?

Because when I create the first model, I have to show other views, all
with Ajax, where the user can create more nested models, those models
are created using modal views, and once they are added, they are
rendered in some tables.

I can't use transactions between connections ...

Hope now is more clear :-)

thanks,

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate