# File app/controllers/sys_conf_adm_controller.rb, line 309 def get_nametag_format begin @format = NametagFormat.find(params[:id]) rescue ActiveRecord::RecordNotFound flash[:error] << _('Invalid nametag format %d specified') % params[:id] redirect_to :action => 'nametag_format_list' return false end end