wejrowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Jul-04 22:29 UTC
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 / controller/1/cms. 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?
wejrowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Jul-06 15:04 UTC
Re: CMS action & "/cms" subfolder for each controller
Anyone have any idea? I''ve tried things like, map.connect ''/articles/cms'', :controller => ''articles'', :action => ''cms'' But I get, "Couldn''t find Article with ID=cms"