<h2>Contact us</h2>

<%= form_for :contact, url: '/contacts' do |f| %>

	<p>
		<%= f.label :email %><br />
		<%= f.text_field :email %>
	</p>

	<p>
		<%= f.label :message %><br />
		<%= f.text_area :message %>
	</p>

	<p>
		<%= f.submit %>
	</p>

<% end %>
<h2>Contact us</h2>

<%= form_for :contact, url: contacts_path do |f| %>

	<p>
		<%= f.label :email %><br />
		<%= f.text_field :email %>
	</p>

	<p>
		<%= f.label :message %><br />
		<%= f.text_area :message %>
	</p>

	<p>
		<%= f.submit %>
	</p>

<% end %>
Change url: from '/contacts' to contacts_path
Change url: from '/contacts' to contacts_path
