I have the following code in rails
<% @post.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
SyntasticCheck VIM plug in keeps displaying this error
app/views/posts/new.html.erb[Syntax: line:12 (1)]
1 app/views/posts/new.html.erb|12 warning| possibly useless use of a variable in void context