undefined method `topics_path'

Not sure what this means and why... I got the undefined method error when I try to go to , and after I generate my first forum.

ActionView::TemplateError (undefined method `topics_path' for #<ActionView::Base:0x10319f2e0>) on line #25 of app/views/forums/index.html.erb:

The area of code the error refers to is: -

<!-- First column will be the forum name-->
<div class="forumname">
  <%= link_to forum.name, topics_path(forum) -%>

The relevant section of the route.rb file is: -

map.resources :forums do |forum|
  forum.resources :topics do |topic|
    topic.resources :posts


You have topics nested under forums in your routes, so your url helper will be forum_topics_path(forum, topic). Notice you have to pass the forum and topic both to the helper.


 ? undefined method `coordinates' for nil:NilClass
 ? Undefined Method in ruby on rails
 ? Undefined method, avatar and name for nil:NilClass
 ? undefined method `premium?' for nil:NilClass
 ? undefined method `default_image' for nil:NilClass
 ? C# WinForms - Determine when void method returns
 ? C# - Unable to add item to listview from method invoked from class
 ? GCC : Return statement from a void function in C
 ? How to call objective c method from c method iOS
 ? Creating multiple choice for user