%tr %td = model_class.human_attribute_name attribute_name %td = value %td - if attribute_name.to_s != 'state' && object.model.class.state_machines.keys.include?(attribute_name.to_sym) = state_events_buttons object, state_method: attribute_name, model_param_name: :record, route_method: :current_model_record_path