On Jueves, 17 de Septiembre de 2009 10:46:14 Differenthink escribió: > Hi, > > I ve just migrated from an old AS install to the last one. > It seems something has changed and it s annoying me, let met explain : > > I ve multiple model with association between them. > When i list one, and a column of it is an association column it shows > me the to_label i defined in the association model, so great ! > > But if this association column is set to null in my DB, i ve a "Create > New" link that appear in the list... how can i remove it ?? i v read > the entire docs and tested lot of methods but without good success. > There is a method, config.columns[:MY associate colmun].clear_link but > it is not good because it also remove the nested when actually this > association is not null...
Edit actions_for_association_links, look at API: Column, you have examples there: http://wiki.github.com/activescaffold/active_scaffold/api-column If you don't want create link in any association column edit it at class, if you want to remove it only for some column, edit it at each column. > > Any help will be very much appreciated, > > Thanks a lot, > > Regards. > -- 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 -~----------~----~----~----~------~----~------~--~---
