You can use active_scaffold_config_list http://github.com/activescaffold/active_scaffold_config_list[1]
El Martes, 14 de julio de 2015 07:12:16 Georgiy Avakyan escribió: > Hi there! > I have an scaffold with big number of columns (50+). I want to give user > ability to select which columns he wants to see on page. > I have two ideas how to implement this, but I don't know how to do it. > 1) Button 'select columns' at the top of collectionwith list of columns and > checkboxes on the left. Check the boxes -> click apply and you can see > columns which you want. > 2) Simple, 'dumb' way: Just create second web page with another set of > columns (e.g. page_part1 with columns from 1 to 25 and page_part2 with > columns from 26 to 50) > > In 1) case I just don't have an idea how to do it. In 2) case I don't know > how to implement 2 different views for one controller. May be there's way > to just set two kind of activescaffold config in controller and then show > config_1 for admin and config_2 for user? Any another ideas? -------- [1] http://github.com/activescaffold/active_scaffold_config_list -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
