Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created July 28, 2010 09:34
Show Gist options
  • Select an option

  • Save workmad3/493863 to your computer and use it in GitHub Desktop.

Select an option

Save workmad3/493863 to your computer and use it in GitHub Desktop.
class MyClass
def self.draw_some_routes(mapper)
mapper.resources :accounts, :controller => 'authr/accounts', :only => [:new, :create]
end
end
Rails.application.routes.draw do |map|
MyClass.draw_some_routes(self)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment