This line works:
<%= link_to "About", pages_about_path, :class => "name" %>
while this doesn't:
<%= link_to "About", pages_about_path, class : "name" %>
Aren't both equivalent hash notations? The examples shown in the Rails API docs also use the second notation.