View difference between Paste ID: wG4SGWWX and g6d9W5gM
SHOW: | | - or go back to the newest paste.
1-
class PostsController < ApplicationController
1+
<!DOCTYPE html>
2-
	def index	#index
2+
<html>
3-
		@posts = Post.all
3+
	<head>
4-
	end
4+
	  <title>Blog</title>
5-
	
5+
	</head>
6-
	def show	#index
6+
	<body>
7-
	end
7+
		<h1>Our Blog</h1>
8-
	
8+
		<hr />
9-
	def new		#index
9+
		<% @posts.each do |post| %>
10-
	end
10+
			<h2><%= post.title %></h2>
11-
	
11+
			<p><%= post.content %></p>
12-
	def create
12+
			<hr />
13-
	end
13+
		<% end %>
14-
	
14+
	</body>
15-
	def edit	#index
15+
</html>