class UploadController < ApplicationController
require 'grit'
include Grit

def index
#Renders a fiew for the user.     
render 'upload.rhtml'
  end
  def create
#posts to the data model.
    post = DataFile.save(params[:upload])
puts "file uploaded"
render 'upload'
#Also need to call the method to commit the files to the repo
DataFile.gitcommit(repo)
  end
end
