Hi,
Just come across thi sproblem, and jsut cant find out what is wrong with
it, if any one has any suggestions it would be good.
in my projects_controller.rb I have
def list
@project_pages, @projects = paginate :projects, :per_page => 10
end
and ths list.rhtml file I have
<table>
<tr>
<th>Name</th>
<th>Actions</th>
</tr>
<% if @projects %>
<% for project in @projects %>
<tr>
<td><% project.name %></td>
<td>
<%= link_to ''Show'', :action =>
''show'', :id => project %>
<%= link_to ''Edit'', :action =>
''edit'', :id => project %>
</td>
</tr>
<%end%>
<%end%>
</table>
When I view this page the project.name column in the table appears
blank, however the show and edit links work correctly.
Any suggestions to whats going wrong?
thanks
scott
--
Posted via http://www.ruby-forum.com/.