Be aware that it will still appear in the edit, list and show views, so if you don't want to see it at all you should add:
config.columns.exclude :user to exclude the user from all screens. Don't do this if you want to use the user in at least 1 of the views, instead, exclude it from all the views/forms you don't want it: config.create.columns.exclude :user config.update.columns.exclude :user config.show.columns.exclude :user config.list.columns.exclude :user config.field_search.columns.exclude :user #if you're using field_search instead of search. that's in the api-core page in the wiki: http://wiki.github.com/activescaffold/active_scaffold/api-core On Feb 22, 9:34 pm, delirious <[email protected]> wrote: > Hi, > > If you don't even want to see the user, remove it from the create view > by adding "create.columns.exclude :user" to PostController. > If you want to see it but not edit it, add "columns.form_ui[:user] > = :select" to the same controller. > > I hope this helps. It's documented in the API. > > Regards, > Simon > > On Feb 21, 3:03 pm, "[email protected]" <[email protected]> wrote: > > > I have > > > class Post < AR > > belongs_to :user > > end > > > class user < AR > > end > > > When I am in the Activescaffold for Post and go to create a post, the > > form pops up and in the form is a also the option to create a new > > User or replace with an existing user. How can I disable the user > > from being displayed at all, I dont want to create a new user or > > replace with an existing user. I couldn't find out how to do this in > > the docs. > > Thanks. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
