Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 107 lines (85 sloc) 3.166 kb
31bc06f9 » flyerhzm
2010-11-08 notification email test for spec and cucumber, not complete
1 RailsBestpracticesCom::Application.routes.draw do
1ebf5199 » flyerhzm
2011-10-31 forget password
2 devise_for :users, :controllers => {:registrations => "users", :sessions => "sessions", :passwords => "passwords"}
6a8811da » flyerhzm
2011-02-16 migrate authlogic to devise
3 devise_scope :user do
4 resources :users, :only => [:index, :show]
5 end
500ad42e » flyerhzm
2011-02-18 use omniauth instead of authlogic-connect
6 match '/auth/:provider/callback' => 'authentications#create'
7 match '/auth/failure' => redirect('/')
8 resources :authentications
6a8811da » flyerhzm
2011-02-16 migrate authlogic to devise
9
402886a9 » flyerhzm
2010-08-08 tag show page for posts and questions
10 resources :tags, :only => :show
11
ae4a6e8a » flyerhzm
2010-07-10 use post index and archive actions and add db seed
12 resources :posts do
13 get :archive, :on => :collection
575a908b » flyerhzm
2010-07-11 add comments
14 resources :comments, :only => :create
36f65ea0 » flyerhzm
2010-07-11 vote for posts
15 resources :votes, :only => [:create, :destroy]
a72d5410 » flyerhzm
2010-07-12 add implementation for post, it is commentable too
16 end
9856e579 » flyerhzm
2010-07-26 recent comments for post
17 resources :comments, :only => :index
94d2514a » flyerhzm
2010-12-21 blog post
18
6e3666e8 » flyerhzm
2010-08-01 new, edit, show, list and vote question
19 resources :questions do
20 resources :answers
21 resources :votes, :only => [:create, :destroy]
83106cdd » flyerhzm
2010-08-04 comments for question and answer
22 resources :comments, :only => :create
6e3666e8 » flyerhzm
2010-08-01 new, edit, show, list and vote question
23 end
47aa14f2 » flyerhzm
2010-08-01 display, new, edit and vote answers
24 resources :answers do
25 resources :votes, :only => [:create, :destroy]
83106cdd » flyerhzm
2010-08-04 comments for question and answer
26 resources :comments, :only => :create
47aa14f2 » flyerhzm
2010-08-01 display, new, edit and vote answers
27 end
e99f07ca » flyerhzm
2010-07-05 change header style and add post model
28
d11a2eba » flyerhzm
2010-12-23 change url from /blog_posts to /blog/posts
29 scope '/blog' do
05f0a973 » flyerhzm
2010-12-23 /blog/posts use controller blog_posts
30 resources :posts, :controller => :blog_posts, :as => :blog_posts, :only => [:index, :show] do
d11a2eba » flyerhzm
2010-12-23 change url from /blog_posts to /blog/posts
31 resources :comments, :only => :create
32 end
94d2514a » flyerhzm
2010-12-21 blog post
33 end
34
021a0e53 » flyerhzm
2010-08-22 notification feature for comment and answer
35 resources :notifications, :only => [:index, :destroy]
e1996dcc » flyerhzm
2010-08-17 create notification modelgit st
36
a2dce5c1 » flyerhzm
2011-09-05 add partner action to jobs
37 resources :jobs do
38 get :partner, :on => :collection
39 end
bdee07ec » flyerhzm
2011-05-06 create a job, and show/index jobs
40
40809bb7 » flyerhzm
2011-08-21 display sponsor image and track click to sponsor website
41 resources :sponsors, :only => [:show]
42
4010c89e » flyerhzm
2010-08-08 search result page
43 match 'search' => 'search#show', :as => :search
94d2514a » flyerhzm
2010-12-21 blog post
44
21c401dc » flyerhzm
2010-07-13 static content edited on admin
45 match 'page/:name' => 'pages#show', :as => :page
6e95c37d » flyerhzm
2010-07-04 build a base rails3 app by flyerhzm's rails3-template
46
c8b78022 » flyerhzm
2010-07-12 fix register and login style and fix cucumber
47 root :to => "posts#index"
6e95c37d » flyerhzm
2010-07-04 build a base rails3 app by flyerhzm's rails3-template
48
d08855f4 » flyerhzm
2012-01-03 upgrade to rails 3.1
49 mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
50
6e95c37d » flyerhzm
2010-07-04 build a base rails3 app by flyerhzm's rails3-template
51 # The priority is based upon order of creation:
52 # first created -> highest priority.
53
54 # Sample of regular route:
55 # match 'products/:id' => 'catalog#view'
56 # Keep in mind you can assign values other than :controller and :action
57
58 # Sample of named route:
59 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
60 # This route can be invoked with purchase_url(:id => product.id)
61
62 # Sample resource route (maps HTTP verbs to controller actions automatically):
63 # resources :products
64
65 # Sample resource route with options:
66 # resources :products do
67 # member do
68 # get :short
69 # post :toggle
70 # end
71 #
72 # collection do
73 # get :sold
74 # end
75 # end
76
77 # Sample resource route with sub-resources:
78 # resources :products do
79 # resources :comments, :sales
80 # resource :seller
81 # end
82
83 # Sample resource route with more complex sub-resources
84 # resources :products do
85 # resources :comments
86 # resources :sales do
87 # get :recent, :on => :collection
88 # end
89 # end
90
91 # Sample resource route within a namespace:
92 # namespace :admin do
93 # # Directs /admin/products/* to Admin::ProductsController
94 # # (app/controllers/admin/products_controller.rb)
95 # resources :products
96 # end
97
98 # You can have the root of your site routed with "root"
99 # just remember to delete public/index.html.
100 # root :to => "welcome#index"
101
102 # See how all your routes lay out with "rake routes"
103
104 # This is a legacy wild controller route that's not recommended for RESTful applications.
105 # Note: This route will make all actions in every controller accessible via GET requests.
106 # match ':controller(/:action(/:id(.:format)))'
107 end
Something went wrong with that request. Please try again.