Skip to content

Instantly share code, notes, and snippets.

@Xiangshen-Meng
Created April 8, 2016 03:01
Show Gist options
  • Save Xiangshen-Meng/9beb4d3c25a9d008bf81c61762cc2907 to your computer and use it in GitHub Desktop.
Save Xiangshen-Meng/9beb4d3c25a9d008bf81c61762cc2907 to your computer and use it in GitHub Desktop.
p
= "下記のお客様より、「#{@inquiry.service.name}」へお問い合わせがありました。"
p
'・名前
br
= @inquiry.name
p
'・メールアドレス
br
= @inquiry.email
p
'・会社名
br
= @inquiry.company_name
p
'・電話番号
br
= @inquiry.phone
p
'・部署区分
br
= t("range.profile.department.#{@inquiry.department}") if @inquiry.department
p
'・役職区分
br
= t("range.profile.position.#{@inquiry.position}") if @inquiry.position
p
'・導入予定時期
br
= @inquiry.introduction_time ? t("activerecord.attributes.inquiry.introduction_time.#{@inquiry.introduction_time}") : "(入力なし)"
p
'・問い合わせの種類
br
= @inquiry.inquiry_type ? t("activerecord.attributes.inquiry.inquiry_type.#{@inquiry.inquiry_type}") : "(入力なし)"
p
'・解決したい課題・要望など
br
= @inquiry.note.present? ? @inquiry.note : "(入力なし)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment