Skip to content

Instantly share code, notes, and snippets.

@kracekumar
Created March 22, 2011 00:45
Show Gist options
  • Save kracekumar/880544 to your computer and use it in GitHub Desktop.
Save kracekumar/880544 to your computer and use it in GitHub Desktop.
class UploadController < ApplicationController
def admission
@all=Upload.get_all
@upload=Upload.new(params[:item])
@upload[:item]+='_'+Time.now.to_s
@upload[:uploaded_at]=Time.now
if @upload.save
flash[:notice]="File uploaded successful,please wait for processing "
else
flash[:notice]="SOmething went wrong "
end
end
def marks
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment