def autosave
      post = Post.new(post_params)
      ret = Post.do_autosave params, post

      if ret == 'passed'
        @record = Post.find(params[:post][:id])
        render :partial => "roroacms/admin/partials/revision_tree"
      else
        return render :text => "f"
      end

    end
def autosave
      post = Post.new(post_params)
      ret = Post.do_autosave params, post

      if ret == 'passed'
        @record = Post.find(params[:post][:id])
        render :partial => "roroacms/admin/partials/revision_tree"
      else
        return render :text => "f"
      end

    end
is called via an ajax call on BOTH post/page this saves the current state post every 2 mins
 and saves it as a "autosave" these posts are then displayed as revisions underneath the post editor