2014-05-19 17:44:36 +08:00
|
|
|
class HomeworkUsersController < ApplicationController
|
2014-06-10 08:47:21 +08:00
|
|
|
#新增数据
|
|
|
|
def create option
|
|
|
|
user = HomeworkUser.new option
|
|
|
|
user.save
|
|
|
|
user
|
|
|
|
end
|
|
|
|
#删除数据
|
|
|
|
def destory homework_user
|
|
|
|
user = HomeworkUser.find homework_user
|
|
|
|
user.destroy
|
|
|
|
user
|
|
|
|
end
|
2014-05-19 17:44:36 +08:00
|
|
|
end
|