def update
    @content = Content.find(params[:id])
    if @content.update_attributes(content_params)
      redirect_to admin_topic_path(@content.topic_id), notice: "Content successfully updated."
    else