<div id="container">
	<div id="newPostContainer">
		<%= form_for(@post, url: posts_path, remote: true) do |f| %>
			<div id="newPostText">
				New post
			</div>
			<div id="newPostField">
				<%= f.text_area :text %>
			</div>
			<div id="newPostSubmit">
				<%= f.submit %>
			</div>
		<% end %>
	</div>

	<div id="posts">
		<%= render @posts %>
	</div>
</div>

<div id="container">
	<div id="newPostContainer">
		<%= form_for(@post, url: posts_path, remote: true) do |f| %>
			<div id="newPostField">
				<%= f.text_area :text %>
			</div>
			<div id="newPostSubmit">
				<%= f.submit "Write post" %>
			</div>
		<% end %>
	</div>

	<div id="posts">
		<%= render @posts %>
	</div>
</div>

Clean up new post form
Clean up new post form
