app/controllers/compiles_controller.rb
def compileAndSave() 
    @compile[:uuid] = uuid
    dir = "#{Rails.root}/public/saved/#{@compile[:uuid]}"
    Dir.mkdir( dir )
    return compile(dir)
  end
# GET /compiles/new
# GET /compiles/new.json
#
# Executes when user clicks the save button
# Saves code to disk and returns a UUID to the 
# browser. If the code is compilable it will also
# be compiled.


Executes when user clicks the save button
Saves code to disk and returns a UUID to the
browser. If the code is compilable it will also
be compiled.
Executes when user clicks the save button Saves code to disk and returns a UUID to the browser . If the code is compilable it will also be compiled .
def compileAndSave() 
    @compile[:uuid] = uuid
    dir = "#{Rails.root}/public/saved/#{@compile[:uuid]}"
    Dir.mkdir( dir )
    return compile(dir)
  end
def compileAndSave ( ) @compile [ :uuid ] = uuid dir = "#{Rails.root}/public/saved/#{@compile[:uuid]}" Dir . mkdir ( dir ) return compile ( dir ) end
GET /compiles/new
GET /compiles/new.json
GET / compiles / new GET / compiles / new . json