diff --git a/app/views/admin/asks/do_export.xlsx.axlsx b/app/views/admin/asks/do_export.xlsx.axlsx index e9c24ef..a8d8d33 100644 --- a/app/views/admin/asks/do_export.xlsx.axlsx +++ b/app/views/admin/asks/do_export.xlsx.axlsx @@ -29,7 +29,7 @@ wb.add_worksheet(name: "Ask Question") do |sheet| when 'ask_category_id' text = categories[ask_question.category_id].title rescue '' when 'sex' - text = ask_question.sex + sex = ask_question.sex if ['male','female'].include? sex.to_s text = I18n.t("mongoid.attributes.ask_question.#{sex}") else