View difference between Paste ID: g6d9W5gM and dsfm98QF
SHOW: | | - or go back to the newest paste.
1-
blog$ rake routes
1+
class PostsController < ApplicationController
2-
    posts GET    /posts(.:format)          posts#index
2+
	def index	#index
3-
          POST   /posts(.:format)          posts#create
3+
		@posts = Post.all
4-
	new_post GET    /posts/new(.:format)      posts#new
4+
	end
5-
edit_post GET    /posts/:id/edit(.:format) posts#edit
5+
	
6-
     post GET    /posts/:id(.:format)      posts#show
6+
	def show	#index
7-
          PUT    /posts/:id(.:format)      posts#update
7+
	end
8-
          DELETE /posts/:id(.:format)      posts#destroy
8+
	
9
	def new		#index
10
	end
11
	
12
	def create
13
	end
14
	
15
	def edit	#index
16
	end
17
	
18
	def update
19
	end
20
	
21
	def destroy
22
	end
23
end