On Sábado, 20 de Marzo de 2010 00:16:25 Gregory Kornblum escribió:
> I whipped up an administration app for a web app which has content
> divided out by sites and all have membership capabilities. So I made a
> scaffold for the sites lookup up table (50 records) and another for
> the member (500K). Being that each member is related to a specific
> site ID I figured heck, I'll add the has_many to the sites model and
> the belongs_to in the members model. Dong so basically crippled the
> editing capabilities of the site table scaffold and would simply hang
> upon clicking edit. Since there was no real need for the model
> relation in the admin I commented out the has_many/belongs_to in each
> model and site editing comes right up.

You don't need to remove the association, you can exclude the column from 
active_scaffold if you don't want to show it. But you can't edit a record with 
a subform for an association with 500K records

>
> Obviously not a priority and I need to look more into associations
> with this wonderful little component but I figured I'd throw it out
> there. This is on a production Ubuntu 9.04 server with a total of 8
> cores and 32GB of RAM, MySQL 5.1 (InnoDB), Ruby 1.8, Rails 2.3.5 and
> Apache 2.2 with passenger/mod_rails.

-- 
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