class Superconductor::FileController < ApplicationController def edit end def update @file = File.open(params[:file],'w') @file.puts(params[:content]) @file.close respond_to do |format| format.json { render json: nil, status: :ok } end end end