日期:2014-05-16 浏览次数:20357 次
@tempcourse = Tempcourse.create( :name => params[:coursename], :cate_id => params[:cate_id], :creater_id => params[:creater_id] )
@tempcourse = Tempcourse.create() do |book| book.name => params[:coursename], book.cate_id => params[:cate_id], book.creater_id => params[:creater_id] end