Skip to content

Instantly share code, notes, and snippets.

@nakamorichi
Created February 3, 2010 17:05
Show Gist options
  • Save nakamorichi/293777 to your computer and use it in GitHub Desktop.
Save nakamorichi/293777 to your computer and use it in GitHub Desktop.
RuntimeError in Admin/dashboard#index
Showing app/views/admin/dashboard/_posts.html.erb where line #9 raised:
Invalid root argument:
Extracted source (around line #9):
6: <% else %>
7: <% for post in @recent_posts -%>
8: <li>
9: <%= link_to_permalink post, post.title %> (<%= link_to_permalink(post, post.published_comments.size) %>)
10: </li>
11: <% end %>
12: <% end %>
Trace of template inclusion: app/views/admin/dashboard/index.html.erb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment