he lo siguiente en una vista (.html.erb):rubí sobre raíles: Representación parciales en cada elemento de una lista
<% @posts = GetAllPostsFunctions %> (removed for berivity)
<% @posts.each do |post| %>
<%= post.title %>
<%= render :partial => "posts/post_show" %>
<% end %>
la posts_show parcial tiene la siguiente:
....
<td><%=h @post.title %> </td>
pero me da el siguiente error
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.title
¿Alguna idea?
impresionante, gracias! – cbrulak