Wes Gamble wrote: > AS 2.1 > > All, > > I'm working on an app. where I am (by degrees) converting all of the > administrative views over to ActiveScaffold. > > One thing that I am running into, is that I need the "list" columns to > be different depending on whether I am fielding an HTML request or a > JSON request. > > Obviously, I can manipulate active_scaffold_config.list.columns > appropriately in an overridden "index" method and then call "super" to > get the rendering to happen. > > Is this the best way to go, or is there any support built in for > format-specific column specifications? > > Thanks, > Wes > Interestingly, this behavior appears to have been some weird intermittent issue in my app.
Actually, it appears that for an XML and JSON request, the list columns are not respected anyway, which is exactly the behavior that I wanted. So, I guess forget it, although I would like some verification that there is an inherent difference in column rendering across formats. Thanks, Wes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
