# RESTful Administration

**URL:** <https://www.ruby-forum.com/t/restful-administration/126590>\
**Category:** Rails\
**Created:** [January 20, 2008, 12:30am UTC](https://www.ruby-forum.com/t/restful-administration/126590 "2008-01-20T00:30:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![melvinram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Post date:** [January 20, 2008, 12:30am UTC](https://www.ruby-forum.com/t/restful-administration/126590/1 "2008-01-20T00:30:22Z")

</div>

How does everyone here who uses REST, create administration panels?  
I’ve seen it being done by embedding admin functions into the website  
itself… but does that work for complex systems… such as an e-  
commerce system?

It seems as if the code will end up being full of \<% if admin? %\>  
statements… and administrators will be showed more than they really  
need/want to see.

I’ve looked on google but only came up with the embedded  
administration method.

Anyone with experience with a real application wanna give their  
insights?

---

<div class="post-metadata">

**Author:** ![melvinram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Post date:** [January 20, 2008, 12:54am UTC](https://www.ruby-forum.com/t/restful-administration/126590/2 "2008-01-20T00:54:24Z")

</div>

I am just testing such functionalities applying ‘webistrano’  
pattern… I set up a specific admin.mydomain.tld for administration  
and I use web services and remote ssh accesses for admin my  
www.mydomain.tld  
I agree on your point, doing admin task inside my site was difficult  
and maybe unsecure …

erwin

---

<div class="post-metadata">

**Author:** ![melvinram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Post date:** [January 20, 2008, 2:18am UTC](https://www.ruby-forum.com/t/restful-administration/126590/3 "2008-01-20T02:18:43Z")

</div>

Hmm… seems completed to set up… and possibly redundant. I’ll think  
about it more.

---

<div class="post-metadata">

**Author:** ![melvinram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Post date:** [January 20, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/restful-administration/126590/4 "2008-01-20T16:55:12Z")

</div>

So I bought the screencast from Peepcode on REST and it basically gave  
me a method that will work for dealing with an adminstration panel  
without having to have a million if statements. Basically it talks  
about how to pick a different layout and/or template based on who is  
viewing the site and also restricting access based on who is viewing  
the website.

I highly recommend checking out this video if you are struggling with  
REST or how to do RESTful administration:

[https://peepcode.com/products/restful-rails](https://peepcode.com/products/restful-rails)

~ mel
