Just started using rails, and am using edge. I’d like to have an area
(url location) of the site that manages the models (products, product
options, categories, orders, content etc.). My first thought (products
for example) was to create an AdminProductController controller, that
would extend the ProductController that was generated by using
scaffold_resource script. Then, in the ProductController I would
specify with a filter which actions should be protected. Would doing
this, “trick” Rails into getting me the correct views and layouts? It
seems backwards to me, to put the authorization in the generated
Is it still RESTful to have a url like: /admin/product/1;edit ???
Or do I switch the view and layout and allowed actions based on the
user authentication and go with /product/1;edit - for some reason that
So… I have the ProductController, a set of public views with a set of
actions, a set of admin views and set of actions, and different layouts
for each public and admin views. How is this done now with the new REST
stuff? Would someone be so kind as to actually post an example? Please?