Displaying 1 result from an estimated 1 matches for "newchild".
Did you mean:
netchild
2006 Aug 01
0
persisting tree navigation
...<%= link_to ''Destroy'', { :action => ''destroy'', :id => child },
:confirm => ''Are you sure?'', :post => true %><br />
<% end %>
»<%= link_to ''new Child'', :action => ''newChild'', :id => parent
%><br />
</div>
<% end %>
and then this is in the controller:
def edit_page
tree_navigation
if params[:id]
@page = Page.find(params[:id])
else
@page = Page.find(:first)
end
@text = @page.text
if @text ==...