Learning Rails: namespaced controllers

A common requirement of a visitor facing web application is that the administration component of the app is behind a login with a different layout, style sheet and feel. Rails 2.0 makes this very simple with namespaced controllers. On a recent project the specs called for the administration to live under an /admin path, simple enough. script/generate controller admin/employees index show new create edit update Perfect, now I’ve got my new controller and some views.