def apply_job
name = "tao_sky"
email = "huaitao-deng@foxmail.com"
education = "a doomsday graduate"
skill = "java\ssh2-frames\ruby-1.8.7\rails3\jquery etc"
remark = "Doing pioneering work ,ONE OF MY DREAMS"
position "internship"
u = User.where(:name => name)
flash[:notice] = "你已经投过简历了" and return if u
apply_user = User.new(:name => name, :email => email, :education => education, :skill =>skill, :remark = > remark, :postion => position)
if apply_user.save
flash[:notice] = "简历投入成功,期待您的加入我们的团队~"
redirect_to :controller => :account, :action => :index
else
flash[:notice] = "出了点小问题,再试一遍吧~"
return
end
end
def reply
@
users = User.page(params[:page]).where("position = ?", :internship).order("created_time desc") .per(15)
if params[:id]
u = User.find_by_id(params[:id])
if params[:operate] == "ok" and u
u.notices = "ok"
u.save
flash[:notice] = "你已经通知该求职者来面试了..."
elseif params[:operate] == "refuse" and u
u.notices = "refuse"
u.save
flash[:notice] = "好吧,让他去找找其他的创业公司,3Q"
else
flash[:notice] = "用户不存在或者操作失误,联系下管理员吧~"
end
end
THANK YOU ,是挺想找个优秀的创业公司去实习,去为梦想奋斗~现在在珠海的某间公司实习,使用的是rails3,,从上面的代码就可以看出我的代码功力还不是很好,使用的不是很熟悉~
如果可以,我可以抽空去面试...希望与您有个愉快的交谈~