I'm following the tutorial here and when I try to click the create article button in my web browser literally nothing happens, neither in the web browser nor the server console. The webpage renders correctly, it's just the button that isn't working. According to the tutorial I should be getting an error if the function 'create' wasn't defined in the ArticlesController class. Here is the template code:
<h1>Create a New Article</h1
<%= form_for(@article) do |f| %>
<ul>
<% @article.errors.full_messages.each do |error| %>
<li><%= error %></li>
<% end %>
</ul>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %>
</p>
<p>
<%= f.label :body %><br />
<%= f.text_area :body %>
</p>
<p>
<%= f.submit %>
</p>
<% end %>
ArticlesController
class ArticlesController < ApplicationController
def index
@articles = Article.all
end
def show
@article = Article.find(params[:id])
end
def new
@article = Article.new
end
end
<%= f.submit %>and not<% f.submit %>