On Martes, 2 de Junio de 2009 15:25:59 JannaB escribió: > But arent there required naming conventions to the Controller > corresponding to a model itself in Rails, yes? So I am thinking if I > can put > > active_scaffold :users do |config| > [restrict columns, actions, and so on] > end > > in the function (actions) level, so that I have two functions in the > controller each with different code like this? -Janna
the naming conventions aren't required, you can use active_scaffold do |config|, but when model name can't be infered from controller name you must set as active_scaffold :users do |config| Also others ActiveScaffold controllers can't guess the active_scaffold controller for that model when you don't follow naming conventions for nested links for example. You would have to override active_scaffold_controller_for: http://wiki.github.com/activescaffold/active_scaffold/api-core > > On Jun 2, 3:19 am, "Sergio Cambra .:: entreCables S.L. ::." > > <[email protected]> wrote: > > On Lunes, 1 de Junio de 2009 19:25:18 JannaB escribió: > > > I am wondering how to handle this: I have a model, 'users'. The table > > > can be edited. So far, so good, standard CRUD on a given model, > > > standard views, etc. > > > > > > One of the fields in the users table is a text field for their > > > whereabouts, with info put in by the users themselves. I want a > > > different, separate view in my application, that shows (i.e. list > > > view) only their > > > whereabouts of the users. > > > > > > How does you handle this in the AS design? I already have a > > > controller and a view for users (where you show/edit/delete on the > > > user). How do > > > you handle different required functionality/view like this? Thanks, > > > Janna > > > > You can create another controller with > > active_scaffold :users do |config| > > [restrict columns, actions, and so on] > > end > > > > -- > > Sergio Cambra .:: entreCables S.L. ::. > > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza > > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > -- Sergio Cambra .:: entreCables S.L. ::. Nicolás Guillén 6, locales 2 y 3. 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 -~----------~----~----~----~------~----~------~--~---
