Displaying 1 result from an estimated 1 matches for "comments_index_path".
2010 Oct 14
7
undefined method?
...gt;
=======
I then added into routes.db the following lines:
resource :comments
map.connect ''/controller1/new'', :controller =>
''controller1'', :action => ''new''
Now, navigating to /controller1/new gives me this error:
undefined method `comments_index_path''
What am I missing?
If I change the form to "form_for(:Comments)", then ''/controller1/new''
renders, however, when I then add "@comments = Comments.all" into the
index definition, and:
- @comments.each do |comment|
- comment.content
into the i...