I am trying to create a admin controller which requires access to many other resource models is. / P>
For example
A
: shelf controller
: books ,
: movies and
: Music .
Now I want to root it so I have tried it earlier: localhost: 3000 / shelf / books / new
Resources: Books ,: Shelf => 'Books' but they do not work.
At this time someone's help would be appreciated.
Thanks
Try something like that
Resources: do shelf resources: end of books then you can do something
Resources: do shelf resources: books resources : Movies ... End This will be the path to localhost: 3000 / shelf / books Hope it helps!
Update If you want all book resources under one shelf, then you can use a namespace
Namespace: Use shelf resources: end of books
No comments:
Post a Comment