Displaying 1 result from an estimated 1 matches for "_days".
Did you mean:
days
2006 Jun 04
3
Ajax table does not update
...s to a child.
I want to create ana ajax table listing the children and, after pressing
a button, I want to show the days that belong to that child.
Here is my code:
(list.rhtml)
<table>
<tr>
...
<td><%= link_to ''Days'', :action => ''show_days'', :id => child %></td>
</tr>
<tr>
<div id="show_days" style="display: none"></div>
</tr>
</table>
(child_controller
def show_days
@child = Child.find(params[:id])
@days = @child.days
end
(child.chow...