On Jueves, 20 de Agosto de 2009 00:04:15 Soren Christensen escribió:
> The create link is
> /users/new?_method=get&parent_column=klasses&parent_controller=klass&parent
>_id=67&parent_model=Klass
>
> The create link in the Klass controller is disabled.
> The create link in the Users controller is also disabled.

Links to nested forms (links to create or edit for belongs_to associations in 
list views) check security only at model class (look at security in the wiki)
http://wiki.github.com/activescaffold/active_scaffold/security

Are you disabled them with a method in controller?

>
> /S
>
> Soren Christensen wrote:
> > Hi,
> >
> > I have a list view of a Klasses which has links to various teaches, IA,
> > parent reps etc.
> > All of those are done as Rail references with belong_to
> >
> > For the positions that are not filled AS offers "Create New".
> >
> > There must be a way to control the access level to this create.
> >
> > Wondering what it is.
> >
> > If I click it I get an error:
> > Processing UsersController#new (for 76.247.187.116 at 2009-08-19
> > 15:00:32) [GET]  Parameters: {"parent_column"=>"klasses",
> > "action"=>"new", "_method"=>"get", "adapter"=>"_list_inline_adapter",
> > "controller"=>"users", "parent_id"=>"67", "parent_model"=>"Klass",
> > "parent_controller"=>"klass"}
> >
> > NoMethodError (undefined method `klasses=' for
> > #<User:0x2b807b7d58f8>):
>
> 
-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to