update achievement gain date to submission date(not grading date)
refine code
change activerecord code to sql statement
refine code
Merge remote-tracking branch 'upstream/development' into bugfixing/achievement
Using new obtained_at field
set obtained_at after create
run migration
add obtained_at in sql statement
add migrate file
add rake file to set obtain_at date
changed call back to before_create
set obtained at to submit date
remove debugging code '
using class function to assign date
Merge pull request #204 from wangqiang1208/bugfixing/achievement

update achievement gain date to submission date(not grading date)
Fix a bug of "run-button not functional when there were any errors."
refine code
remove extra blanks
fixing question nil issue in code_of_last_attempt