<div class="col-xs-12">
	<h2><%= t('new_article.subject') %></h2>

	<%= form_for :article, url: '/articles' do |f| %>

		<% if @article && @article.errors.any? %>
			<p>
				<ul>
					<% @article.errors.full_messages.each do |msg| %>
						<li><%= msg %></li>
					<% end %>
				</ul>
			</p>
		<% end %>

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

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

		<p>
			<%= f.submit 'Create article' %>
		</p>

	<% end %>
</div>
<div class="col-xs-12">
	<h2><%= t('new_article.subject') %></h2>

	<%= form_for :article, url: articles_path do |f| %>

		<% if @article && @article.errors.any? %>
			<p>
				<ul>
					<% @article.errors.full_messages.each do |msg| %>
						<li><%= msg %></li>
					<% end %>
				</ul>
			</p>
		<% end %>

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

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

		<p>
			<%= f.submit 'Create article' %>
		</p>

	<% end %>
</div>
Change url: from '/articles' to articles_path
Change url: from '/articles' to articles_path
