# Restful design - make everything restful?

**URL:** <https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887>\
**Category:** Rails\
**Created:** [June 4, 2007, 11:57am UTC](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887 "2007-06-04T11:57:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [June 4, 2007, 11:57am UTC](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887/1 "2007-06-04T11:57:10Z")

</div>

hi all,

I want to have a administrator view where users can be altered, site  
structures can be changed, layout can be defined, …

I can perfectly see how to define a restful user, sitestructure and  
layout controller but how can an administator controller be build in a  
restful way? Do you make all your controllers restful or only a  
selection?

Regards,  
Stijn

---

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [June 4, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887/2 "2007-06-04T14:31:32Z")

</div>

what resource your ‘administrator controller’ revolves around?  
what actions it contains?

---

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [June 4, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887/3 "2007-06-04T14:52:36Z")

</div>

It will use the User, Structure and Layout resource. They all have  
their own restfull controller but I also want to centralize them in an  
administrator view

---

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [June 4, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887/4 "2007-06-04T15:26:41Z")

</div>

I think if you need kind of dashboard, aggregating info for different  
resources it’s ok to have unrestful controller, but all operations on  
specific resource should go to corresponding controller.
