Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4a6868a266
Fetching contributors…

Cannot retrieve contributors at this time

89 lines (65 sloc) 3.703 kb
ActionController::Routing::Routes.draw do |map|
map.resources :flag_categories
#map.resources :articles, :has_many => :comments
map.resources :flags
#jots
map.resources :jots
#users & sessions
map.resources :users
map.login "login", :controller => "user_sessions", :action => "new"
map.logout "logout", :controller => "user_sessions", :action => "destroy"
map.register "register", :controller => "users", :action => "new"
map.activate "activate/:id", :controller => 'user_sessions', :action => 'verify'
map.resources :user_sessions
#administration
#map.namespace :administration do |admin|
# Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
#admin.resources :users, :member => { :suspend => :put, :unsuspend => :put, :purge => :delete }
#end
#map.resources :users, :member => { :suspend => :put, :unsuspend => :put, :purge => :delete }
#bookmark imports
map.convert_all_bookmarks '/bookmark_imports/convert_all', :controller => 'bookmark_imports', :action => 'convert_all'
map.convert_bookmark '/bookmark_imports/:id/convert', :controller => 'bookmark_imports', :action => 'convert'
map.destory_all_bookmark_imports '/bookmark_imports/destroy_all', :controller => 'bookmark_imports', :action => 'destroy_all'
map.import_bookmarks '/bookmarks/import', :controller => 'bookmark_imports', :action => 'import'
map.do_bookmark_import '/bookmark_imports/do_import', :controller => 'bookmark_imports', :action => 'do_import'
map.resources :bookmark_imports
#search
#map.search '/search', :controller => 'search', :action => 'index'
map.search '/search', :controller => 'search', :action => 'query'
#settings
map.settings '/settings', :controller => 'users', :action => 'edit'
#comments
map.resources :comments
#bookmarks
#map.new_bookmark '/bookmarks/new', :controller => 'bookmarks', :action => 'new'
map.resources :bookmarks, :except => :show, :has_many => :comments
map.bookmark_post_question '/bookmarks/:id/postquestion', :controller => 'bookmarks', :action => 'post_question'
map.bookmarks_by_tag '/bookmarks/tags/:tag', :controller => 'bookmarks', :action => 'tags'
map.bookmark_tag_cloud '/bookmarks/tagcloud', :controller => 'bookmarks', :action => 'tag_cloud'
map.bookmark_category '/bookmarks/:language', :controller => 'bookmarks', :action => 'index'
map.with_options :controller => "bookmarks" do |bookmarks|
bookmarks.bookmark '/bookmarks/:language/:id', :action => "show", :conditions => { :method => :get }
end
#languages
map.resources :languages
#administration
##users are mapped with path_prefix of /administration
map.administration '/administration', :controller => 'administration', :action => 'index'
map.administration_tools '/administration/tools', :controller => 'administration', :action => 'tools'
map.administration_databases '/administration/databases', :controller => 'administration', :action => 'databases'
map.namespace :administration do |admin|
# Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
admin.resources :reports
end
#pages
map.credits '/credits', :controller => 'pages', :action => 'credits'
map.legal 'legal', :controller => 'pages', :action => 'legal'
map.termsofuse '/termsofuse', :controller => 'pages', :action => 'termsofuse'
map.privacypolicy '/privacypolicy', :controller => 'pages', :action => 'privacypolicy'
#root
map.root :controller => 'search'
#derault routes
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Jump to Line
Something went wrong with that request. Please try again.