Admin Controllers in Merb?

The namespace method seems to do it This is placed in the routes file (router. Rb): namespace :admin do resources :categories end This generates routes like: edit_admin_category - /admin/categories/:id/edit(.:format) delete_admin_category - /admin/categories/:id/delete(.:format) admin_categories - /admin/categories(/index)(.:format) new_admin_category - /admin/categories/new(.:format) admin_category - /admin/categories/:id(.:format) I then put my controller in a module like this: module Admin class Categories . End end I am not sure if this is the recommended way, any suggestions to this would be great.

The namespace method seems to do it. This is placed in the routes file (router. Rb): namespace :admin do resources :categories end This generates routes like: edit_admin_category - /admin/categories/:id/edit(.:format) delete_admin_category - /admin/categories/:id/delete(.:format) admin_categories - /admin/categories(/index)(.:format) new_admin_category - /admin/categories/new(.:format) admin_category - /admin/categories/:id(.:format) I then put my controller in a module like this: module Admin class Categories .. End end I am not sure if this is the recommended way, any suggestions to this would be great.

The above answer is correct, but for what it's worth, I had a hard time trying to make use of the new route with link_to in my views. I ended up getting this to work.

I was upgrading across too many versions of Merb! My application was a flat, Rack application originally developed with a much older version of Merb. It didn't have (or need) a Gemfile.

When I ran it against the latest Merb, the error was thrown. I ran merb-gen to get a basic Gemfile and updated it with my own requirements. Hope that helps someone!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions