CMS action & "/cms" subfolder for each controller

How do I do this? (And is this a good solution?)

I want to have a “/cms” for each controller so I can login as admin
and edit them, instead of creating whole new controllers for the cms.

Default if you add a new action like, def cms… you have to do /

I’m thinking of creating the backend that all links up each controller
through the “/cms”

How can I route this? and is this a good idea?

Anyone have any idea? I’ve tried things like,

map.connect ‘/articles/cms’, :controller => ‘articles’, :action =>

But I get, “Couldn’t find Article with ID=cms”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs