He buscado y buscado, pero nada resolvió mi problema. Aquí está mi controlador:Kaminari & Rails pagination - método indefinido `current_page '
def show
@topic = Topic.find(params[:id])
@topic.posts = @topic.posts.page(params[:page]).per(2) # 2 for debugging
end
Eso funciona bien, porque la vista del tema se reduce a dos mensajes. Sin embargo, cuando agrego esto a show.html.erb:
<%= paginate @topic.posts %>
me dan este error:
undefined method `current_page' for #<ActiveRecord::Relation:0x69041c9b2d58>
Eso lo consiguió, me siento tonta ahora. ¡Gracias! – time