Proper way to override desert_routes.rb ?

1 view
Skip to first unread message

Audrey A Lee

unread,
Nov 21, 2009, 3:41:15 PM11/21/09
to CommunityEngine
Hello,

I'm looking for a proper way to override desert_routes.rb

I'd like to create a file called RR/config/my_desert_routes.rb

Then I want to copy all of the syntax from desert_routes.rb into RR/
config/my_desert_routes.rb

Then I want to issue a directive to my CE-app to use RR/config/
my_desert_routes.rb

I'd like for the directive to reside inside of config/routes.rb if
that is possible.

Clues anyone?

--Audrey

Jim Ruther Nill

unread,
Nov 22, 2009, 2:09:09 AM11/22/09
to communi...@googlegroups.com
Just create a config/routes.rb file and add/override your custom routes there.  If rails can't find a matching route in your app's routes file, it will then go to your plugin's (CE's) routes file to find a match.


--

You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To post to this group, send email to communi...@googlegroups.com.
To unsubscribe from this group, send email to communityengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/communityengine?hl=.





--
"We do not believe in ourselves until someone reveals that deep inside us is valuable, worth listening to, worthy of our trust, sacred to our touch." - E. E. Cummings
Reply all
Reply to author
Forward
0 new messages