Skip to content

Instantly share code, notes, and snippets.

p
= "下記のお客様より、「#{@inquiry.service.name}」へお問い合わせがありました。"
p
'・名前
br
= @inquiry.name
p
'・メールアドレス
br
- if @record.profile
p
= @record.profile.last_name
'さん
- else
p
= @record.email
p
'Boxil運営事務局です。
p
- if @record.unconfirmed_email
p
'Boxil運営事務局です。
p
'メールアドレスの変更依頼を受け付けました。以下のメールアドレス確認用URLに
br
'アクセスして、メールアドレスの変更を完了させてください。
p
'【確認用URL】
p

Wordpress での設定

日付のフォーマット

設定 -> 一般 にある、日付のフォーマットを「カスタム」 Y.m.d へ設定。

PR用カテゴリーの設定

PR(Sponsored)で表示するカテゴリーを pr というslugで設定。

{
"simpleschema": {
"messages": {
"required": "[label] is required",
"minString": "[label] must be at least [min] characters",
"maxString": "[label] cannot exceed [max] characters",
"minNumber": "[label] must be at least [min]",
"maxNumber": "[label] cannot exceed [max]",
"minNumberExclusive": "[label] must be greater than [min]",
"maxNumberExclusive": "[label] must be less than [max]",
{
"record_date": "2015-09-23",
"users_count": 100,
"business_count": 101,
"starters_count": 102,
"documents_count": 103,
"downloads_count": 104,
"favorites_count": 105,
"supports_count": 106,
"messages_count": 107

Boxil Basic

  • Mysql(RDS)
  • Sass/Coffee(jQuery)
  • Sidekiq(Redis, Asynchronous task)
  • Devise
  • aws-sdk(PDF convert)
  • refile(Profile image, Document image)
  • mina(deploy)
  • whenever(cron task)

Top page

documents/index.html

  • shared/flash_message
  • documents/key_visual
  • documents/sort
  • documents/document
  • documents/pagination
  • shared/footer
diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb
index 71a4c9d..0dab7f7 100644
--- a/app/views/documents/index.html.erb
+++ b/app/views/documents/index.html.erb
@@ -47,7 +47,7 @@
</li><!-- /.cateory-btn-area -->
<li class="pager-area pull-right">
- <%= will_paginate @documents, renderer: BootstrapPagination::Rails, class: "pagination pagination-lg" %>
+ <%= will_paginate @documents, renderer: BootstrapPagination::Rails, class: "pagination pagination-lg", previous_label: '<i class="fa fa-chevron-left"></i>', next_label: '<i class="fa fa-chevron-right"></i>' %>