app/controllers/features_controller.rb
# The following three methods are used with the Node Tree
The following three methods are used with the Node Tree
The following three methods are used with the Node Tree
def expanded
    @node = Feature.find(params[:id])
    respond_to do |format|
      format.html { redirect_to @node }
      format.js   { @ancestors = (@node.current_ancestors(current_perspective).collect(&:id) + [@node.id.to_s]).join(',') } 
    end
  end
def expanded @node = Feature . find ( params [ :id ] ) respond_to do | format | format . html { redirect_to @node } format . js { @ancestors = ( @node . current_ancestors ( current_perspective ) . collect ( & :id ) + [ @node . id . to_s ] ) . join ( ',' ) } end end
The following three methods are used with the Node Tree
The following three methods are used with the Node Tree
# response would be handled by expanded.js.erb