Skip to content

Instantly share code, notes, and snippets.

<%= form_for(@status) do |f| %>
<% if @status.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@status.errors.count, "error") %> prohibited this status from being saved:</h2>
<ul>
<% @status.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
Routing Error
No route matches [GET] "/haikus/1/vote"
Try running rake routes for more information on available routes.