Skip to content

Instantly share code, notes, and snippets.

@dreamr
Created September 1, 2010 19:56
Show Gist options
  • Save dreamr/561242 to your computer and use it in GitHub Desktop.
Save dreamr/561242 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.draw do |map|
map.resources :communities
SprocketsApplication.routes(map)
# Translate::Routes.translation_ui(map) if RAILS_ENV != "production"
# map.root :controller => 'folders', :action => 'index'
# map.connect '/icons/:key', :controller => :icons, :action => :show
#
# map.connect 'assets/:id/:style/:filename', :controller => 'uploads', :action => 'download', :conditions => { :method => :get }, :requirements => { :filename => /.*/ }
# map.connect '*path', :controller => 'application', :action => 'rescue_404' unless RAILS_ENV == 'development'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment