Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 84 lines (67 sloc) 2.437 kb
6e95c37 @flyerhzm build a base rails3 app by flyerhzm's rails3-template
flyerhzm authored
1 RailsBestpracticesCom::Application.routes.draw do |map|
e34a9e0 @flyerhzm add typus with 3-0-unstable branch
flyerhzm authored
2 Typus::Routes.draw(map)
e3b2e3e @flyerhzm add resque-web as rack
flyerhzm authored
3 mount Resque::Server.new, :at => '/resque'
e34a9e0 @flyerhzm add typus with 3-0-unstable branch
flyerhzm authored
4
383cc90 @flyerhzm add tag for posts
flyerhzm authored
5 resources :tags, :only => :show do
8ec02a2 @flyerhzm add more cucumber features
flyerhzm authored
6 resources :posts, :only => :index
383cc90 @flyerhzm add tag for posts
flyerhzm authored
7 end
ae4a6e8 @flyerhzm use post index and archive actions and add db seed
flyerhzm authored
8 resources :posts do
9 get :archive, :on => :collection
575a908 @flyerhzm add comments
flyerhzm authored
10 resources :comments, :only => :create
36f65ea @flyerhzm vote for posts
flyerhzm authored
11 resources :votes, :only => [:create, :destroy]
a24fc65 @flyerhzm make implementation singleton resource for post
flyerhzm authored
12 resource :implementation
a72d541 @flyerhzm add implementation for post, it is commentable too
flyerhzm authored
13 end
9856e57 @flyerhzm recent comments for post
flyerhzm authored
14 resources :comments, :only => :index
a72d541 @flyerhzm add implementation for post, it is commentable too
flyerhzm authored
15 resources :implementations do
16 resources :comments, :only => :create
ae4a6e8 @flyerhzm use post index and archive actions and add db seed
flyerhzm authored
17 end
e99f07c @flyerhzm change header style and add post model
flyerhzm authored
18
5f127d7 @flyerhzm add url to users and new style for form
flyerhzm authored
19 resources :users, :only => [:new, :create, :edit, :update]
6e95c37 @flyerhzm build a base rails3 app by flyerhzm's rails3-template
flyerhzm authored
20
21 resource :user_session
21c401d @flyerhzm static content edited on admin
flyerhzm authored
22
23 match 'page/:name' => 'pages#show', :as => :page
6e95c37 @flyerhzm build a base rails3 app by flyerhzm's rails3-template
flyerhzm authored
24
c8b7802 @flyerhzm fix register and login style and fix cucumber
flyerhzm authored
25 root :to => "posts#index"
6e95c37 @flyerhzm build a base rails3 app by flyerhzm's rails3-template
flyerhzm authored
26
27 # The priority is based upon order of creation:
28 # first created -> highest priority.
29
30 # Sample of regular route:
31 # match 'products/:id' => 'catalog#view'
32 # Keep in mind you can assign values other than :controller and :action
33
34 # Sample of named route:
35 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
36 # This route can be invoked with purchase_url(:id => product.id)
37
38 # Sample resource route (maps HTTP verbs to controller actions automatically):
39 # resources :products
40
41 # Sample resource route with options:
42 # resources :products do
43 # member do
44 # get :short
45 # post :toggle
46 # end
47 #
48 # collection do
49 # get :sold
50 # end
51 # end
52
53 # Sample resource route with sub-resources:
54 # resources :products do
55 # resources :comments, :sales
56 # resource :seller
57 # end
58
59 # Sample resource route with more complex sub-resources
60 # resources :products do
61 # resources :comments
62 # resources :sales do
63 # get :recent, :on => :collection
64 # end
65 # end
66
67 # Sample resource route within a namespace:
68 # namespace :admin do
69 # # Directs /admin/products/* to Admin::ProductsController
70 # # (app/controllers/admin/products_controller.rb)
71 # resources :products
72 # end
73
74 # You can have the root of your site routed with "root"
75 # just remember to delete public/index.html.
76 # root :to => "welcome#index"
77
78 # See how all your routes lay out with "rake routes"
79
80 # This is a legacy wild controller route that's not recommended for RESTful applications.
81 # Note: This route will make all actions in every controller accessible via GET requests.
82 # match ':controller(/:action(/:id(.:format)))'
83 end
Something went wrong with that request. Please try again.