1
2
3
ActionController::Routing::Routes.draw do |map|
  eval(File.open(File.dirname(__FILE__) + '/../path/to/another/routes/file.rb', 'r').read)
end

Ruby Adding routes in an externa...

by jseifer, March 07, 2008 22:40, 2 refactorings, tagged with rails

I'm trying to retain the ra...

1543059f424f9fe5b7654413e6c8dc22 Talk