0
我有我的应用程序的视图在这里我使用命令渲染这样Problema与轨道
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Descripcion</th>
<th>Fecha Creacion</th>
<th>Prioridad</th>
<th>Fecha Limite</th>
<th></th>
</tr>
</thead>
<tbody>
<%= render :file => "/notes/_pendientes.html.erb" %>
</tbody>
</table>
但是,当我要去看看该指数在应用程序的开始这看起来像一个视图此
http://i.stack.imgur.com/dUTGT.jpg
和在控制器我有这样
@pendientes = Note.where变量( '埃斯塔=?',真)
@finalizadas = Note.where( '埃斯塔=?',假)
我不知道为什么是显示在指数的开头信息
感谢您的帮助
jajajajajajajajajaj原因只是一个= 非常感谢:D – Andru1989
@AndresFelipeVizcainoRestrep很酷! – lurker
如果你的父视图在'notes'文件夹中,你可以'渲染'pendientes'' –