On Jueves, 21 de Enero de 2010 12:49:12 Jesper Rønn-Jensen escribió: > Hey > > Active Scaffold is very verbose about what is shows in the edit > screen. > Per default, it's showing a full inline edit of a nested model. > Example. Let's assume that Product belongs to Category. If I were > editing a Product, I would also see the interface to inline create a > new Category. (and > > Instead > I would like to show only a dropdown with the already created > categories (along with the button saying "add existing"), and then a > tiny link saying "create new...". The link can just have the > functionality of the button today that says "replace with existing". > (which then reveals the full edit of the nested model). > > But my point here is that I will hide the nested models attributes on > the edit screen. They are not as important as filling in attributes on > the model I decided to create or edit. > > How do I do this?
Try to disable show_blank_record, but I'm not sure if it works for singular associations. You can disable for some columns: config.columns[:association_name].show_blank_record = false Or for all columns: ActiveScaffold::DataStructures::Column.show_blank_record = false Although it isn't what you want, you can try to set collapsed too: config.columns[:association_name].collapsed = true -- 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.
