app/controllers/file_controller.rb in superconductor-0.0.2 vs app/controllers/file_controller.rb in superconductor-0.0.3
- old
+ new
@@ -1,13 +1,14 @@
-module Superconductor
- class FileController < ApplicationController
- def update
- @file = File.open(params[:file],'w')
- @file.puts(params[:content])
- @file.close
+class Superconductor::FileController < ApplicationController
+ def edit
+ end
- respond_to do |format|
- format.json { render json: nil, status: :ok }
- 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