Ruby是按引用传递还是按值传递?
@user.update_languages(params[:language][:language1], params[:language][:language2], params[:language][:language3])lang_errors = @user.errors logger.debug "--------------------LANG_ERRORS----------101-------------" + lang_errors.full_messages.inspectif params[:user] @user.state = params[:user][:state] success = success & @user.saveendlogger.debug "--------------------LANG_ERRORS-------------102----------" + lang_errors.full_messages.inspectif lang_errors.full_messages.empty?
@user
lang_errors
update_lanugages
@user
lang_errors
慕容708150
蝴蝶刀刀
白衣染霜花
相关分类