Thanks a million. The documentation at GitHub seems to be much better than the docs at activescaffold.com? I never realised to look at the docs at GitHub. Silly me...
/Matti On 06/01/2010 13:57, "[email protected]" <[email protected]> wrote: > Hi, > > Question1 : > Take a look at > http://wiki.github.com/activescaffold/active_scaffold/api-column > associated_limit should be your friend. :-) > > Question2 : > You may write your own field_override or auto-open the nested > association. > > -- > Volker > > On 6 Jan., 11:01, Naomi <[email protected]> wrote: >> Hi, >> >> May I chip in, and ask a short vaguely related question. I'm very new to >> AS... I'm trying it out so that I might use it as backend for MANY ancient >> DB's. So far I'm very impressed with ROR & AS. >> >> I have a nested List in which I basically want to show all ContactNumbers of >> a Person. >> >> I now use the to_list to both show and make the ContactNumbers clickable; >> |Person |ContactNumbers | >> |Bob Dabolino|123-456-789, 765-453-323, 287-876-232| >> |George Box |673-376-238, 652-367-322, 276-273-265| >> >> (where Person has_many ContactNumbers & ContactNumbers belong to Person) >> >> If I now add a fourth phone number to Bob it shows; >> |Person |ContactNumbers | >> |Bob Dabolino|123-456-789, 765-453-323, 287-876-232, ... (4)| >> |George Box |673-376-238, 652-367-322, 276-273-265 | >> >> 1. Is there a simple way of showing ALL ContactNumbers without truncating >> after the third? >> 2. Is there a simple way of showing the ContactNumbers one per line? >> >> Basically I want a nested list where everything nested shows in the standard >> AS view without the user needing to click the to_label... >> >> Any ideas? >> >> Regards, >> Matti Zemack, Broadcast Media Concultancy, Stockholm, Sweden >> >> On 06/01/2010 08:57, "[email protected]" <[email protected]> >> wrote: >> >>> Hi, >> >>> in your active scaffold configuration for your controller you may >>> define: >> >>> conf.columns[:col_name].options = {:truncate => 100} >> >>> -- >>> Volker
-- 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.
