Yeah, Jim's right. The best approach would just be to overwrite the necessary routes *before* the CE routes are declared. Another approach would be to just override the relevant controllers, adding a before filter to redirect everything back to the home or login page.
Thanks, Bruno On Tue, Jun 29, 2010 at 1:56 AM, Jim Ruther Nill <[email protected]> wrote: > Well, another way you can go about this is to declare all the routes that > you want to remove before the map.routes_from_plugin line and redirect them > to a 404 page or something. > > > On Tue, Jun 29, 2010 at 2:49 PM, james <[email protected]> wrote: > >> Thanks for the response Jim. I was hoping I wouldn't have to do that, >> but if that is the only way. >> >> If no one else has any suggestions, that's the solution I'll go for. >> I'll wait for a couple of hours, then if no one else chimes in I'll >> pull the trigger. >> >> Tally-ho! >> >> On Jun 29, 3:01 pm, Jim Ruther Nill <[email protected]> wrote: >> > I think the only way to do this is to copy the desert_routes to your >> app's >> > routes files. Then you can edit from there. Of course, you have to >> remove >> > the map.routes_from_plugin :community_engine line. >> > >> > >> > >> > On Tue, Jun 29, 2010 at 12:45 PM, james <[email protected]> >> wrote: >> > > Hi All, >> > >> > > I am wanting to disable a bunch of functionality in my CE application. >> > > I'm thinking that the "proper" way to do this is to remove / disable >> > > routes for unwanted functionality. I also want to change the names of >> > > certain routes and not have the old routes available. >> > >> > > Is there a simple way to do this without editing the desert_routes >> > > file? >> > >> > > Thanks! >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "CommunityEngine" group. >> > > To post to this group, send email to [email protected] >> . >> > > To unsubscribe from this group, send email to >> > > [email protected]<communityengine%[email protected]> >> <communityengine%[email protected]<communityengine%[email protected]> >> > >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/communityengine?hl=en. >> > >> > -- >> > ------------------------------------------------------------- >> > visit my blog athttp://jimlabs.heroku.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "CommunityEngine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<communityengine%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/communityengine?hl=en. >> >> > > > -- > ------------------------------------------------------------- > visit my blog at http://jimlabs.heroku.com > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<communityengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/communityengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
