Default Scaffolding Gives Errors


#1

This is the default scaffolding for list.rhtml:

<h1>Listing <%= @scaffold_plural_name %></h1>

<table>
<tr>
<% for column in @scaffold_class.content_columns %>
<th><%= column.human_name %></th>
 <% end %>
</tr>

  <% for entry in instance_variable_get("@#{@scaffold_plural_name}") %>
<tr>
<% for column in @scaffold_class.content_columns %>
    <td><%= entry.send(column.name) %></td>
  <% end %>
      <td><%= link_to "Show", :action => "show#{@scaffold_suffix}", :id
=> entry.id %></td>
      <td><%= link_to "Edit", :action => "edit#{@scaffold_suffix}", :id
=> entry.id %></td>
      <td><%= link_to "Delete", :action => "destroy#{@scaffold_suffix}",
:id => entry.id %></td>
    </tr>
  <% end %>
  </table>

  <br />

  <%= link_to "New #{@scaffold_singular_name}", :action =>
"new#{@scaffold_suffix}" %>

For some reason whenever I click on the the “Show”, “Edit”, or “Destroy”
links, I get a “Couldn’t find Post without an ID” error. THat seems odd
because I have the entry.id right there, and for some reason it’s not
linking to http://localhost:3000/blog/show/1, it just links to
/blod/show.

Any ideas?


#2

Also, when I try and manually access the ID’s, like /blog/show/1, I get
this error:

Couldn’t find Post with ID=1

What gives?