자주하는 질문 (FAQ)

Red Hat 3scale 2-saas

3scale 설치와 관련된 추가 정보를 찾습니다.

Red Hat Customer Content Services

초록

이 가이드에서는 3scale 설치와 상호 작용하는 구성 요소에 대한 정보를 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 용어를 교체하기 위해 최선을 다하고 있습니다. 먼저 마스터(master), 슬레이브(slave), 블랙리스트(blacklist), 화이트리스트(whitelist) 등 네 가지 용어를 교체하고 있습니다. 이러한 변경 작업은 향후 여러 릴리스에 대해 단계적으로 구현될 예정입니다. 자세한 내용은 CTO Chris Wright의 메시지에서 참조하십시오.

1장. 자주하는 질문 (FAQ)

1.1. 스테이크란 무엇인가?

유동성은 API 공급자에 사용 가능한 3scale 시스템에서 대부분의 데이터를 표시하고 처리하는 데 사용되는 간단한 프로그래밍 언어입니다. 유동성은 원래 Cryo stat 에 의해 개발되었으며 웹 전체의 다른 많은 콘텐츠 관리 시스템 (CMS) 엔진에서 사용됩니다. 3scale 플랫폼에서는 서버 측 데이터를 API 개발자에게 노출하는 데 사용되며 높은 수준의 보안을 유지하면서 개발자 포털의 유용성을 크게 확장할 수 있습니다.

1.1.1. 제품 및 서비스

유동성은 주로 개발자 포털 페이지에서 서버 측 데이터를 가져와서 표시하는 데 사용됩니다. 그러나 이러한 것보다 유동성에는 훨씬 더 많은 전력이 있습니다. 이들은 다음을 위해 매우 잘 작동합니다:

  • 서버 측 데이터를 기반으로 페이지의 content 및 content 변경
  • 페이지, 레이아웃 및 부분적인 논리 추가
  • 개발자에게 전송된 이메일 템플릿 조작

유동체가 문제에 대한 최상의 솔루션을 제공하지 않는 일부 사용 사례가 있습니다. 대부분의 경우 사용자 또는 페이지 URL의 입력과 같은 동적 데이터를 사용해야 합니다.

일반적인 조언 중 일부는 페이지에 논리를 추가하는 기본 방법으로 사용하는 것입니다. 그러나 불가능하거나 지나치게 복잡한 경우 JavaScript로 전환하십시오 (또는 JS와 함께 liquids도 잘 작동합니다).

1.2. How to use liquids

유동 태그는 논리 태그와 출력 태그의 두 가지 유형으로 나뉩니다. {% %} 로 표시된 논리 태그는 if 절, 루프 등과 같은 표준 프로그래밍 언어 요소를 포함하는 조건부 유동 문입니다.

{% if current_user %}           <!-- if the user is logged in -->
  <a href="/logout">Logout</a>  <!-- show the logout link -->
{% else %}                      <!-- if the user is not logged in -->
  <a href="/login">Login</a>    <!-- display the login link -->
{% endif %}

{{ }} }}로 표시된 출력 태그는 중괄호 사이의 태그 값을 표시하는 데 사용됩니다.

{{ current_user.username }}     <!-- display the logged-in user's username value -->

논리 태그에 대한 문서는 Cryostat 튜토리얼을 참조하십시오. 3scale 유동 출력 태그의 전체 참조는 tags 섹션과 Help > Liquid Reference 의 관리 포털에서 찾을 수 있습니다.

1.2.1. 유동성 삭제, 태그 및 필터

3scale 개발자 포털에서는 세 가지 유형의 유동 태그에 액세스할 수 있습니다.

유동 제거, 태그 및 필터는 유동성 사용 방법에 언급된 논리 및 출력 태그와 유사합니다.

유동 감소는 가장 기본적인 구조이며 대부분의 시간을 사용합니다. 사용자에게 사용자 이름 및 애플리케이션 식별자와 같이 시스템에 저장된 특정 값에 대한 액세스 권한을 부여합니다. 인터프리터는 다른 출력 태그와 동일한 방식으로 처리합니다.

반면, 유동 태그는 추가 사용자 지정을 위해 시스템의 특정 부분을 렌더링하거나 액세스하는 논리 태그 유형으로, 예를 들어 레이아웃에 콘텐츠를 렌더링하거나 이메일 템플릿을 사용자 지정합니다.

필터를 사용하면 드롭 다운, 값 변환 및 일부 키로 그룹화된 결과 수정 옵션을 사용할 수 있습니다. 표준 유동 필터 그룹이 있습니다. 이 필터는 liquid 참조 섹션에 나열된 특수 3scale 내부 필터 그룹 및 특정 3scale 내부 필터 그룹에서 찾을 수 있습니다. http://docs.shopify.com/themes/liquid-basics/output

1.2.2. 컨텍스트

컨텍스트는 현재 페이지에서 사용할 수 있는 변수(drops)를 설명합니다. 기본 세트에는 다음 변수가 포함됩니다.

  • provider
  • URL
  • current_user
  • current_account
  • 현재

이러한 변수는 이메일 템플릿을 제외하고 개발자 포털 전체의 모든 페이지에서 사용할 수 있습니다. 그러나 기본 제공 페이지의 대부분은 몇 가지 추가 변수를 사용할 수 있습니다. 예를 들어 edit 사용자 양식에는 사용자 변수가 노출됩니다(현재 사용자 페이지 대신 - 사용자 ID를 이미 알고 있음). 현재 페이지에서 사용할 수 있는 변수를 확인하려면 특수 태그 {% debug:help %} 가 있습니다. 페이지 소스에서 주석으로 사용할 수 있는 모든 최상위 변수 목록을 추가합니다.

1.2.3. 계층 구조

컨텍스트의 직접적인 결과는 유동성이 계층 구조로 구성된다는 것입니다. 사용 가능한 변수 집합에는 사용 가능한 최상위 드롭이 나열됩니다. 이를 사용하면 계층 내에서 훨씬 더 깊은 요소에 액세스할 수 있습니다. 예를 들어 로그인한 사용자의 사용자 이름을 표시하려면 {{ current_user.username }} 을 작성합니다.

낮은 수준의 감소를 표시하는 것은 약간 더 복잡합니다. 사용자에 대한 유일한 애플리케이션 이름을 표시하려고 한다고 가정합니다. 참조 가이드를 보면 메서드 애플리케이션이 계정 드롭다운의 일부임을 확인할 수 있습니다. 즉, 애플리케이션은 단일 애플리케이션 태그의 배열입니다. 사용자에게 둘 이상의 애플리케이션이 있는 경우 논리 태그를 사용하여 해당 애플리케이션을 반복해야 합니다. 그렇지 않으면 계정에서 첫 번째(및 전용) 애플리케이션을 참조할 수 있습니다. 이 코드를 표시할 코드는 다음과 같습니다. {{ current_account.applications.first.name }}.

1.3. 유동 템플릿

다음 변수는 모든 리쿼드 템플릿에서 사용할 수 있습니다.

  • 공급자 - 한 번에 모든 서비스, 계획 및 설정
  • URL - 개발자 포털의 기본 제공 페이지로의 경로 - 로그인, 등록
  • CURRENT_USER - 현재 로그인한사용자의 사용자 이름, 주소 및 권한
  • current_account - 현재 로그인한 사용자의메시지, 애플리케이션 및 계획
  • 현재 - 현재 날짜

기본 제공 페이지에는 개발자 포털에서 언급된 다른 변수를 사용할 수도 있습니다. 예를 들어 편집 사용자 양식 편집에는 사용자 변수가 할당되거나 애플리케이션 세부 정보를 표시하는 동안 변수 애플리케이션에 액세스할 수 있어야 합니다.

변수 유형은 이 참조를 사용하기 위해 알아야 하며, 사용 가능한 모든 변수와 해당 유형을 HTML 주석에 나열하는 페이지에 {% debug:help %} 태그를 배치하여 결정할 수 있습니다. 그러나 일반적으로 메서드 또는 변수 이름에서 쉽게 추측할 수 있습니다.

1.4. drops

1.5. 태그

1.6. 필터

1.7. 드롭 다운 ()

1.7.1. 계정 삭제 (up)

개발자 계정. 이메일 주소 또는 유사한 정보를 찾는 경우 사용자 드롭을 참조하십시오.

<h2>Account organization name {{ current_account.name }}</h2>
Plan {{ current_account.bought_account_plan.name }}
Telephone {{ current_account.telephone_number }}

{{ current_account.fields_plain_text }}
{{ current_account.extra_fields_plain_text }}

{% if current_account.approval_required? %}
   <p>This account requires approval.</p>
{% endif %}

{% if current_account.credit_card_required? %}

  {% if current_account.credit_card_stored? %}
    <p>This account has credit card details stored in database.</p>
  {% else %}
    <p>Please enter your {{ 'credit card details' | link_to: urls.payment_details }}.</p>
  {% endif %}

  {% if current_account.credit_card_missing? %}
    <p>This account has no credit card details stored in database.</p>
  {% endif %}
{% endif %}

1.7.1.1. 방법

1.7.1.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ account.errors.name | inline_errors }}
1.7.1.1.2. id

계정의 ID를 반환합니다.

1.7.1.1.3. name

개발자 계정의 조직 이름을 반환합니다.

1.7.1.1.4. vat_zero_text

vat 0에 대한 텍스트 반환

1.7.1.1.5. vat_rate

vat 비율 반환

1.7.1.1.6. unread_messages

읽지 않은 메시지

1.7.1.1.7. latest_messages

최신 메시지 반환

1.7.1.1.8. bought_account_plan

계정이 계약한 계획을 반환합니다.

1.7.1.1.9. bought_account_contract

계약 계정 반환

1.7.1.1.10. credit_card_display_number
1.7.1.1.11. credit_card_expiration_date
1.7.1.1.12. credit_card_required?

신용 카드 세부 정보를 입력하는 데 계정이 필요한지 여부를 반환합니다.

1.7.1.1.13. credit_card_stored?

계정에 신용 카드 세부 정보가 저장되어 있는지 여부를 반환합니다.

1.7.1.1.14. credit_card_missing?

계정에 신용 카드 세부 정보가 저장되어 있지 않은지 여부를 반환합니다.

1.7.1.1.15. timezone

이 계정의 시간대 반환

1.7.1.1.17. on_trial?

계정이 시험 기간에 있는지 여부를 반환합니다. 즉 모든 유료 계약이 시험 기간 내에 있어야합니다.

1.7.1.1.18. telephone_number

계정의 전화 번호를 반환합니다.

1.7.1.1.19. approval_required?

계정이 승인이 필요한지 여부를 반환합니다.

1.7.1.1.20. created_at

계정 생성(서명)의 UNIX 타임스탬프 반환: 타임스탬프를 JavaScript 날짜로 변환

<script>
  var data = new Date({{ account.created_at }} * 1000);
</script>
1.7.1.1.21. full_address

법적 주소, 도시 및 국가로 구성 할 수 있습니다

1.7.1.1.22. 애플리케이션

계정의 애플리케이션을 반환합니다.

1.7.1.1.23. subscribed_services

ServiceContract drops를 사용하여 배열을 반환합니다.

1.7.1.1.24. admin

이 계정의 admin 사용자를 반환합니다.

1.7.1.1.25. extra_fields_plain_text

계정에 정의된 추가 필드를 일반 텍스트로 반환합니다.

1.7.1.1.26. fields_plain_text

계정에 정의된 필드를 일반 텍스트로 반환합니다.

1.7.1.1.27. extra_fields

이 계정의 값이 있는 추가 필드만 반환: 모든 추가 필드를 인쇄

{% for field in account.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.1.1.28. 필드

이 계정의 값이 있는 모든 필드를 반환: 모든 필드 출력

{% for field in account.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.1.1.29. builtin_fields
1.7.1.1.30. multiple_applications_allowed?
1.7.1.1.31. billing_address

이 계정의 청구 주소를 반환합니다.

1.7.1.1.32. has_billing_address?

이 계정에 청구 주소가 있는지 여부를 반환합니다.

1.7.1.1.33. 가능

권한 방법에 대한 액세스 권한 부여

{% if account.can.be_deleted? %}
  <!-- do something -->
{% endif %}
1.7.1.1.34. edit_url
1.7.1.1.35. edit_ogone_billing_address_url
1.7.1.1.36. edit_payment_express_billing_address_url
1.7.1.1.37. edit_braintree_blue_credit_card_details_url
1.7.1.1.38. domain
1.7.1.1.39. 업그레이드하시겠습니까?
1.7.1.1.40. requires_credit_card?
1.7.1.1.41. support_email
1.7.1.1.42. finance_support_email

1.7.2. AccountPlan 드롭 (up)

예: 유동에서 계정 계획 사용

<p class="notice">The examples for plan drop apply here</p>

1.7.2.1. 방법

1.7.2.1.1. 선택됨

계획이 선택되었는지 여부를 반환합니다.

{% if plan.selected? %}
  <p>You will signup to {{ plan.name }}</p>
{% endif %}
1.7.2.1.2. 구매했습니까?

계획이 구매되었는지 여부를 반환합니다.

{% if plan.bought? %}
   <p>You are  on this plan already!</p>
{% endif %}
1.7.2.1.3. features

사용 가능한 기능 배열을 반환합니다.

1.7.2.1.4. setup_fee

설정 비용을 반환

1.7.2.1.5. name

계획의 이름을 반환합니다.

<h2>We offer you a new {{ plan.name }} plan!</h2>
1.7.2.1.6. system_name

계획의 시스템 이름을 반환합니다.

{% for plan in available_plans %}
  {% if plan.system_name == 'my_free_plan' %}

    <p>You will buy our only free plan!</p>
  {% endif %}
{% endfor %}
1.7.2.1.7. id

계획 ID 반환

1.7.2.1.8. 무료입니까?

이 계획은 지불 되지 않은 경우 무료입니다. 유료 방법을 참조하십시오.

{% if plan.free? %}
   <p>This plan is free of charge.</p>
{% else %}

     <p>Plan costs</p>
     Setup fee {{ plan.setup_fee }}
     Flat cost {{ plan.flat_cost }}

{% endif %}
1.7.2.1.10. approval_required?

계획이 승인이 필요한지 여부를 반환합니다.

{% if plan.approval_required? %}
   <p>This plan requires approval.</p>
{% endif %}
1.7.2.1.11. flat_cost

계획의 월간 고정 요금을 반환합니다.

1.7.3. 경고 드롭 (up)

예: 유동성에서 경고 드롭 사용

<h2>Alert details</h2>
Level {{ alert.level }}
Message {{ alert.message }}
Utilization {{ alert.utilization }}

1.7.3.1. 방법

1.7.3.1.1. level

경고 수준은 50, 80, 90, 100, 120, 150, 200, 300 중 하나일 수 있습니다.

1.7.3.1.2. message

경고를 설명하는 텍스트 메시지(예 : 분당 적중: 5개)

1.7.3.1.3. 사용

경고 1.0을 트리거한 실제 사용률을 표시하는 10진수는 100%와 같습니다.

Used by {{ alert.utilization | times: 100 }} percent.

1.7.4. 애플리케이션 드롭 (up)

예: 유동성에서 애플리케이션 삭제 사용

<h2>Application {{ application.name }} ({{ application.application_id }})</h2>
<p>{{ application.description }}</p>

1.7.4.1. 방법

1.7.4.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ application.errors.name | inline_errors }}
1.7.4.1.2. id

애플리케이션 ID를 반환합니다.

1.7.4.1.3. can_change_plan?

애플리케이션 변경이 직접 또는 요청별로 허용되는 경우 true 를 반환합니다.

1.7.4.1.4. 평가판?

계약이 아직 평가판 기간 내에 있는 경우 true를 반환합니다.

참고: 계획의 평가판 기간을 변경하면 기존 계약에 영향을 미치지 않습니다.

1.7.4.1.5. 라이브?
1.7.4.1.6. 상태

세 가지 가능한 상태가 있습니다.

    - pending
    - live
    - suspended
1.7.4.1.7. remaining_trial_period_days

아직 평가판 기간에 남아 있는 날짜 수입니다.

1.7.4.1.8. 계획

애플리케이션 계획을 사용하여 계획 드롭을 반환합니다.

1.7.4.1.9. plan_change_permission_name

허용된 작업의 이름을 반환합니다.

1.7.4.1.10. plan_change_permission_warning

허용된 작업의 경고 전달자 반환

1.7.4.1.11. 계약
1.7.4.1.12. admin_url

애플리케이션의 admin_url을 반환합니다.

1.7.4.1.13. name

애플리케이션 이름을 반환합니다.

1.7.4.1.14. 가능
1.7.4.1.15. oauth
1.7.4.1.16. 보류 중입니까?

애플리케이션 상태가 보류 중이면 true 를 반환합니다.

1.7.4.1.17. buyer_alerts_enabled?
1.7.4.1.18. description

애플리케이션 설명을 반환합니다.

1.7.4.1.19. redirect_url

애플리케이션 OAuth에 대한 리디렉션 URL을 반환합니다.

1.7.4.1.20. filters_limit

이 애플리케이션에 허용되는 참조 필터의 양을 반환합니다.

1.7.4.1.21. keys_limit

이 애플리케이션에 허용되는 애플리케이션 키의 양을 반환합니다.

1.7.4.1.22. referrer_filters

이 애플리케이션과 관련된 참조 필터를 반환합니다.

1.7.4.1.23. rejection_reason

애플리케이션을 거부하는 이유를 반환합니다.

1.7.4.1.24. user_key

애플리케이션의 user_key를 반환합니다.

1.7.4.1.25. application_id

애플리케이션 application_id를 반환합니다.

1.7.4.1.26. key

애플리케이션 ID 또는 사용자 키를 반환합니다.

1.7.4.1.27. url

이 애플리케이션에 대한 기본 제공 세부 정보 뷰의 URL을 반환합니다.

1.7.4.1.28. edit_url

이 애플리케이션에 대한 기본 제공 편집 뷰의 URL을 반환합니다.

1.7.4.1.29. update_user_key_url
1.7.4.1.30. log_requests_url
1.7.4.1.31. alerts_url
1.7.4.1.32. application_keys_url
1.7.4.1.33. 서비스

해당 애플리케이션이 속하는 서비스입니다.

1.7.4.1.34. keys

애플리케이션 키를 반환합니다.

{% case application.keys.size %}
{% when 0 %}
  Generate your application key.
{% when 1 %}
  <h4>Application key for {{ application.name }} {{ application.application_id }}</h4>
  <p>Key is: {{ application.keys.first }}</p>
{% else %}
  <h4>Application keys for {{ application.name }} {{ application.application_id }}</h4>
  <ul>
    {% for key in application.keys %}
      <li>{{ key }}</li>
    {% endfor %}
  </ul>
{% endcase %}
1.7.4.1.35. user_key_mode
1.7.4.1.36. app_id_mode?
1.7.4.1.37. change_plan_url
1.7.4.1.38. log_requests?
1.7.4.1.39. application_keys
1.7.4.1.40. extra_fields

이 애플리케이션 값이 포함된 숨겨진 추가 필드를 반환합니다. 예: 모든 추가 필드를 인쇄

{% for field in application.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.4.1.41. 필드

이 애플리케이션 값이 있는 기본 제공 및 추가 필드를 모두 반환합니다. 예: 모든 필드를 인쇄

{% for field in application.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.4.1.42. builtin_fields

애플리케이션의 기본 제공 필드만 반환합니다.

1.7.4.1.43. cinstance

1.7.5. ApplicationKey 드롭 (up)

1.7.5.1. 방법

1.7.5.1.1. id
1.7.5.1.2. value
1.7.5.1.3. url
1.7.5.1.4. 애플리케이션

1.7.6. ApplicationPlan 드롭 (up)

1.7.6.1. 방법

1.7.6.1.1. 선택됨

계획이 선택되었는지 여부를 반환합니다.

{% if plan.selected? %}
  <p>You will signup to {{ plan.name }}</p>
{% endif %}
1.7.6.1.2. 구매했습니까?

계획이 구매되었는지 여부를 반환합니다.

{% if plan.bought? %}
   <p>You are  on this plan already!</p>
{% endif %}
1.7.6.1.3. features

계획의 표시 기능을 반환합니다.

{% if plan == my_free_plan %}
   <p>These plans are the same.</p>
{% else %}
   <p>These plans are not the same.</p>
{% endif %}
1.7.6.1.4. setup_fee

계획의 설정 비용을 반환합니다.

1.7.6.1.5. name

계획의 이름을 반환합니다.

<h2>We offer you a new {{ plan.name }} plan!</h2>
1.7.6.1.6. system_name

계획의 시스템 이름을 반환합니다.

{% for plan in available_plans %}
  {% if plan.system_name == 'my_free_plan' %}

    <p>You will buy our only free plan!</p>
  {% endif %}
{% endfor %}
1.7.6.1.7. id

계획 ID 반환

1.7.6.1.8. 무료입니까?

이 계획은 지불 되지 않은 경우 무료입니다. 유료 방법을 참조하십시오.

{% if plan.free? %}
   <p>This plan is free of charge.</p>
{% else %}

     <p>Plan costs</p>
     Setup fee {{ plan.setup_fee }}
     Flat cost {{ plan.flat_cost }}

{% endif %}
1.7.6.1.10. approval_required?

계획이 승인이 필요한지 여부를 반환합니다.

{% if plan.approval_required? %}
   <p>This plan requires approval.</p>
{% endif %}
1.7.6.1.11. flat_cost

계획의 월간 고정 요금을 반환합니다.

1.7.6.1.12. 메트릭

계획의 메트릭을 반환합니다.

1.7.6.1.13. usage_limits

계획의 사용 제한을 반환합니다.

1.7.6.1.14. 서비스

계획의 서비스를 반환

1.7.7. 기본 드롭 (up)

1.7.7.1. 방법

1.7.7.1.1. login_url
1.7.7.1.2. user_identified?

1.7.8. 기본 드롭 (up)

1.7.8.1. 방법

1.7.8.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ base.errors.name | inline_errors }}
1.7.8.1.2. title

제목 결과 반환

1.7.8.1.3. kind

결과 유형을 반환하거나 'topic' 또는 'page'일 수 있습니다.

1.7.8.1.4. url

결과 리소스 URL을 반환합니다.

1.7.8.1.5. description

결과에 대한 설명 문자열을 반환합니다.

1.7.9. billingAddressField drop (up)

1.7.9.1. 방법

1.7.9.1.1. input_name
1.7.9.1.2. label
1.7.9.1.3. 선택 사항
1.7.9.1.4. 오류
1.7.9.1.5. html_id
1.7.9.1.6. 숨겨져 있습니까?
1.7.9.1.7. 표시되는?
1.7.9.1.8. READ_ONLY?
1.7.9.1.9. name
1.7.9.1.10. value
1.7.9.1.11. 필수 항목

1.7.10. 드롭할 수 있습니다 (up)

1.7.10.1. 방법

1.7.10.1.1. be_updated?
1.7.10.1.2. add_referrer_filters?
1.7.10.1.3. add_application_keys?
1.7.10.1.4. regenerate_user_key?
1.7.10.1.5. regenerate_oauth_secret?
1.7.10.1.6. manage_keys?
1.7.10.1.7. delete_key?

1.7.11. 드롭할 수 있습니다 (up)

1.7.11.1. 방법

1.7.11.1.1. change_plan?

1.7.12. CAS 드롭 (up)

1.7.12.1. 방법

1.7.12.1.1. login_url
1.7.12.1.2. user_identified?

1.7.13. 계약 중단 (up)

Plan of the contract {{ contract.plan.name }}

1.7.13.1. 방법

1.7.13.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ contract.errors.name | inline_errors }}
1.7.13.1.2. id

ID를 반환합니다.

1.7.13.1.3. can_change_plan?

모든 변경이 가능한 경우 true를 반환합니다.

1.7.13.1.4. 평가판?

계약이 아직 평가판 기간 내에 있는 경우 true를 반환합니다.

참고: 계획의 평가판 기간을 변경하면 기존 계약에 영향을 미치지 않습니다.

1.7.13.1.5. 라이브?
1.7.13.1.6. 상태

세 가지 가능한 상태가 있습니다.

    - pending
    - live
    - suspended
1.7.13.1.7. remaining_trial_period_days

아직 평가판 기간에 남아 있는 날짜 수입니다.

1.7.13.1.8. 계획

계약 계획을 반환합니다.

1.7.13.1.9. plan_change_permission_name

허용된 작업의 이름을 반환합니다.

1.7.13.1.10. plan_change_permission_warning

허용된 작업의 경고 전달자 반환

1.7.13.1.11. 계약

1.7.14. 국가 드롭 (up)

1.7.14.1. 방법

1.7.14.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ country.errors.name | inline_errors }}
1.7.14.1.2. to_str
1.7.14.1.3. 코드
1.7.14.1.4. label

1.7.15. dropField drop (up)

1.7.15.1. 방법

1.7.15.1.1. value

국가의 ID 반환

{{ account.fields.country.value }} => 42

compare with:

{{ account.fields.country }} => 'United States'
1.7.15.1.2. name

필드의 시스템 이름을 반환합니다.

1.7.15.1.3. 필수 항목
1.7.15.1.4. 숨겨져 있습니까?
1.7.15.1.5. Hidden
1.7.15.1.6. 표시되는?
1.7.15.1.7. 표시됨
1.7.15.1.8. read_only
1.7.15.1.9. 오류
1.7.15.1.10. input_name
1.7.15.1.11. html_id
1.7.15.1.12. label

필드의 레이블 반환

{{ account.fields.country.label }}
<!-- => 'Country' -->
1.7.15.1.13. to_str

국가 이름 반환

{{ account.fields.country }} => 'United States'
1.7.15.1.14. 선택 사항

1.7.16. currentUser drop (up)

1.7.16.1. 방법

1.7.16.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ current_user.errors.name | inline_errors }}
1.7.16.1.2. admin?

사용자가 관리자인지 여부를 반환합니다.

{% if user.admin? %}
  <p>You are an admin of your account.</p>
{% endif %}
1.7.16.1.3. 사용자 이름

사용자의 사용자 이름 html 이스케이프를 반환합니다.

1.7.16.1.4. 계정

사용자 계정을 반환합니다.

1.7.16.1.5. name

사용자의 이름과 첫 번째 이름을 반환합니다.

1.7.16.1.6. email

사용자의 이메일을 반환합니다.

1.7.16.1.7. password_required?

이 방법은 Janrain, CAS 또는 기타 Single Sign-On 방법을 통해 인증된 사용자를 위해 기본 제공 개발자 포털 인증 메커니즘을 사용하는 사용자에게 true 를 반환합니다.

{{ if user.password_required? }}


{{ endif }}
1.7.16.1.8. 섹션

사용자가 액세스할 수 있는 섹션 목록을 반환합니다.

{% if user.sections.size > 0 %}
  <p>You can access following sections of our portal:</p>
   <ul>
    {% for section in user.sections %}
      <li>{{ section }}</li>
    {% endfor %}
  </ul>
{% endif %}
1.7.16.1.9. role

사용자의 역할을 반환합니다.

1.7.16.1.10. roles_collection

Retuns a list of available roles for the user

{% for role in user.roles_collection %}
  <li>
    <label for="user_role_{{ role.key }}">

      {{ role.text&nbsp;}}
    </label>
    </li>
  {% endfor %}
1.7.16.1.11. url

사용자의 리소스 URL 반환

{{ 'Delete' | delete_button: user.url }}
1.7.16.1.12. edit_url

사용자를 편집하기 위해 URL을 반환

{{ 'Edit' | link_to: user.edit_url, title: 'Edit', class: 'action edit' }}
1.7.16.1.13. 가능

설정 및 사용자 역할에 종속된 현재 사용자의 권한을 노출합니다. 반환된 오브젝트에서 이러한 메서드를 호출할 수 있습니다.

  • invite_user?
  • create_application?
  • see_log_requests?
{% if current_user.can.see_log_requests? and application.log_requests? %}
   (<a href="{{ application.log_requests_url }}" class="action edit">App Request Log</a>)
{% endif %}
1.7.16.1.14. extra_fields

이 사용자 예: 모든 추가 필드를 인쇄합니다.

{% for field in user.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.16.1.15. 필드

이 사용자 예: 모든 필드의 값을 사용하여 모든 필드를 반환합니다.

{% for field in user.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.16.1.16. builtin_fields

이 사용자에 대한 값이 있는 기본 제공 필드를 모두 반환합니다.

1.7.17. 오류 삭제 (up)

잘못된 데이터로 인해 폼을 제출하지 못하면 관련 모델에서 오류 배열을 사용할 수 있습니다.

1.7.17.1. 방법

1.7.17.1.1. attribute

이 오류에 대한 모델의 반환 속성은 관련이 있습니다.

{{ account.errors.org_name.first.attribute }}
<!-- org_name -->
1.7.17.1.2. message

오류에 대한 설명을 반환합니다.

{{ account.errors.first.message }}
<!-- cannot be blank -->
1.7.17.1.3. value

오류가 관련된 속성의 값을 반환합니다.

{{ account.errors.org_name.first.value }}
 <!-- => "ACME Co." -->
1.7.17.1.4. to_str

오류에 대한 전체 설명을 반환합니다(특성 이름 포함)

{{ model.errors.first }}
<!-- => "Attribute can't be blank" -->

1.7.18. 오류 삭제 (up)

예: 모든 오류 가져오기

{% for error in form.errors %}
  attribute: {{ error.attribute }}
  ...
{% endfor %}

1.7.18.1. 방법

1.7.18.1.1. Empty?

오류가 없는 경우 true를 반환합니다.

{% if form.errors == empty %}
  Congratulations! You have no errors!
{% endif %}
1.7.18.1.2. 현재 위치?

몇 가지 오류가 있는 경우 true를 반환합니다.

{% if form.errors == present %}
  Sorry, there were some errors.
{% endif %}

1.7.19. 기능 드롭 (up)

1.7.19.1. 방법

1.7.19.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ feature.errors.name | inline_errors }}
1.7.19.1.2. name

기능 이름을 반환합니다.

<h2>Feature {{ feature.name }}</h2>
1.7.19.1.3. description

기능에 대한 설명을 반환합니다.

1.7.19.1.4. has_description?

기능에 설명이 있는지 여부를 반환합니다.

{% if feature.has_description? %}
  {{ feature.description }}
{% else %}
   This feature has no description.
{% endif %}

1.7.20. 필드 드롭 (up)

1.7.20.1. 방법

1.7.20.1.1. value

필드의 값을 반환합니다.

Name: {{ account.fields.first_name.value }}
1.7.20.1.2. name

필드의 시스템 이름을 반환합니다.

1.7.20.1.3. 필수 항목
1.7.20.1.4. 숨겨져 있습니까?
1.7.20.1.5. Hidden
1.7.20.1.6. 표시되는?
1.7.20.1.7. 표시됨
1.7.20.1.8. read_only
1.7.20.1.9. 오류
1.7.20.1.10. input_name

폼이 제출될 때 예상되는 HTML 입력의 이름을 반환합니다.

<!-- the 'name' attribute will be 'account[country]' -->
1.7.20.1.11. html_id

HTML ID 속성으로 일반적으로 사용되는 고유 필드 식별자를 반환합니다.

{{ account.fields.country.html_id }}
<!--  => 'account_country' -->
1.7.20.1.12. label

필드의 레이블 반환

{{ account.fields.country.label }}
<!-- => 'Country' -->
1.7.20.1.13. to_str

변수로 사용되는 경우 필드의 값을 반환합니다.

{{ account.fields.first_name }} => 'Tom'
1.7.20.1.14. 선택 사항

해당 필드에 사용할 수 있는 선택 사항의 배열을 반환합니다(있는 경우). 예를 들어, fill이라는 필드에는 ['apple', 'ba~na', 'orange'] 로 응답할 수 있습니다.

Audience > Accounts > Settings > Fields Definitions 의 3scale 관리 포털에서 선택 사항을 정의할 수 있습니다. 각 배열 요소는 필드가 특수 내장 항목(예: 국가)이 아니면 idlabel 에 일반적으로 동일하게 응답합니다. 향후 호환성을 위해 'as is' 선택 사항을 출력하는 대신 이러한 방법을 사용하는 것이 좋습니다.

{% for choice in field.choices %}
  <select name="{{ field.input_name }}" id="{{ field.html_id }}_id"
          class="{{ field.errors | error_class }}">
  <option {% if field.value == choice %} selected {% endif %} value="{{ choice.id }}">
    {{ choice }}
  </option>
{% endfor %}

1.7.21. Flash drop (up)

1.7.21.1. 방법

1.7.21.1.1. 메시지

메시지 배열을 반환

{% for message in flash.messages %}
   <p id="flash-{{ message.type }}">
     {{ message.text }}
   </p>
{% endfor %}

1.7.22. 포럼 드롭 (up)

1.7.22.1. 방법

1.7.22.1.1. 활성화하시겠습니까?

포럼 기능이 활성화되어 있으면 true 를 반환합니다.

{% if forum.enabled? %}
  <a href="/forum">Check out our forum!</a>
{% endif %}
1.7.22.1.2. latest_posts

1.7.23. I18n drop (up)

i18n 지원에 유용한 문자열을 제공합니다.

{{ object.some_date | date: i18n.long_date }}

1.7.23.1. 방법

1.7.23.1.1. short_date

%b %d의 별칭

Dec 11
1.7.23.1.2. long_date

%B %d의 별칭, %Y

December 11, 2013
1.7.23.1.3. default_date

%Y-%m-%d의 별칭

2013-12-11

1.7.24. 초대 드롭 (up)

 Email: {{ invitation.email }}


<tr id="invitation_{{ invitation.id }}">
  <td> {{ invitation.email }} </td>
  <td> {{ invitation.sent_at | date: i18n.short_date }} </td>
  <td>
    {% if invitation.accepted? %}
      yes, on {{invitation.accepted_at | format: i18n.short_date }}
    {% else %}
      no
    {% endif %}
  </td>
</tr>

1.7.24.1. 방법

1.7.24.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ invitation.errors.name | inline_errors }}
1.7.24.1.2. email

이메일 주소 반환

1.7.24.1.3. 허용됩니까?

초대가 수락된 경우 true를 반환합니다.

1.7.24.1.4. accepted_at

초대를 수락한 경우 날짜를 반환합니다.

{{ invitation.accepted_at | date: i18n.short_date }}
1.7.24.1.5. sent_at

생성 날짜를 반환합니다.

{{ invitation.sent_at | date: i18n.short_date }}
1.7.24.1.6. resend_url

초대를 다시 보내기 위한 URL 반환

{{ "Resend" | update_button: invitation.resend_url}}
1.7.24.1.7. url

리소스 URL 반환

{{ "Delete" | delete_button: invitation.url }}

1.7.25. 송장 드롭 (up)

1.7.25.1. 방법

1.7.25.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ invoice.errors.name | inline_errors }}
1.7.25.1.2. friendly_id

친숙한 ID 반환

<td> {{ invoice.id }} </td>
<td> {{ invoice.name }} </td>
<td> {{ invoice.state }} </td>
<td> {{ invoice.cost }} {{ invoice.currency }} </td>
1.7.25.1.3. name

월과 연도로 구성된 문자열

1.7.25.1.4. 상태
1.7.25.1.5. 비용

두 개의 10진수가 있는 숫자를 반환합니다.

23.00
1.7.25.1.6. 통화
1.7.25.1.7. cost_without_vat

자주하는 질문

1.7.25.1.8. vat_amount

vat ammount 반환

1.7.25.1.9. exists_pdf?

pdf가 생성된 경우 true를 반환합니다.

1.7.25.1.10. period_begin
{{ invoice.period_begin | date: i18n.short_date }}
1.7.25.1.11. period_end
{{ invoice.period_end | date: i18n.long_date }}
1.7.25.1.12. issued_on
{{ invoice.issued_on | date: i18n.long_date }}
1.7.25.1.13. due_on
{{ invoice.due_on | date: i18n.long_date }}
1.7.25.1.15. vat_code
1.7.25.1.16. fiscal_code
1.7.25.1.17. 계정

계정 반환

1.7.25.1.18. buyer_account
1.7.25.1.19. line_items

LineItemDrop 배열을 반환합니다.

{% for line_item in invoice.line_items %}
  <tr class="line_item {% cycle 'odd', 'even' %}">
    <th>{{ line_item.name }}</th>
    <td>{{ line_item.description }}</td>
    <td>{{ line_item.quantity }}</td>
    <td>{{ line_item.cost }}</td>
  </tr>
{% endfor %}
1.7.25.1.20. payment_transactions

PaymentTransactionDrop 배열을 반환합니다.

{% for payment_transaction in invoice.payment_transactions %}
  <tr>
    <td> {% if payment_transaction.success? %} Success {% else %} Failure {% endif %} </td>
    <td> {{ payment_transaction.created_at }} </td>
    <td> {{ payment_transaction.reference }} </td>
    <td> {{ payment_transaction.message }} </td>
    <td> {{ payment_transaction.amount }} {{ payment_transaction.currency }} </td>
  </tr>
{% endfor %}
1.7.25.1.21. url

송장의 리소스 URL 반환

{{ "Show" | link_to: invoice.url }}
1.7.25.1.22. pdf_url

송장 pdf의 리소스 URL 반환

{{ "PDF" | link_to: invoice.pdf_url }}

1.7.26. Janrain drop (up)

1.7.26.1. 방법

1.7.26.1.1. login_url
1.7.26.1.2. user_identified?
1.7.26.1.3. session_url
1.7.26.1.4. relying_party

1.7.27. lineitem drop (up)

1.7.27.1. 방법

1.7.27.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ line_item.errors.name | inline_errors }}
1.7.27.1.2. name
{% for line_item in invoice.line_items %}
  <tr class="line_item {% cycle 'odd', 'even' %}">
    <th>{{ line_item.name }}</th>
    <td>{{ line_item.description }}</td>
    <td>{{ line_item.quantity }}</td>
    <td>{{ line_item.cost }}</td>
  </tr>
{% endfor %}
1.7.27.1.3. description
1.7.27.1.4. 수량
1.7.27.1.5. 비용

1.7.28. 메시지 삭제 (up)

1.7.28.1. 방법

1.7.28.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ message.errors.name | inline_errors }}
1.7.28.1.2. id

메시지 ID를 반환합니다.

1.7.28.1.3. 제목

subject가 없으면 잘린 본문 또는 (주체 없음) 문자열이 반환됩니다.

1.7.28.1.4. body

메시지의 본문

1.7.28.1.5. created_at

생성 날짜를 반환합니다.

{{ message.created_at | date: i18n.short_date }}
1.7.28.1.6. url

메시지 세부 정보의 URL은 inbox 또는 outbox를 가리킵니다.

1.7.28.1.7. 상태

'read' 또는 'read' 중 하나

1.7.28.1.8. 보낸 사람

보낸 사람의 이름을 반환합니다.

1.7.28.1.9. 다음으로 변경

수신자의 이름을 반환합니다.

1.7.28.1.10. 수신자

1.7.29. 메시지 삭제 (up)

1.7.29.1. 방법

1.7.29.1.1. type

가능한 메시지 유형은 다음과 같습니다.

  • 성공(현재 사용되지 않음)
  • info
  • 경고
  • 위험
1.7.29.1.2. text

1.7.30. 메트릭 드롭 (up)

1.7.30.1. 방법

1.7.30.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ metric.errors.name | inline_errors }}
1.7.30.1.2. 단위

메트릭의 단위를 반환합니다.

This metric is measured in {{ metric.unit | pluralize }}
1.7.30.1.3. description

메트릭에 대한 설명을 반환합니다.

1.7.30.1.4. name

메트릭의 이름을 반환합니다.

<h4>Metric {{ metric.name }}</h4>
<p>{{ metric.description }}</p>
1.7.30.1.5. system_name

이 메트릭의 시스템 이름을 반환합니다.

<h4>Metric {{ metric.name }}</h4>
<p>{{ metric.system_name }}</p>
1.7.30.1.6. usage_limits

메트릭의 사용량 제한을 반환합니다.

{% if metric.usage_limits.size > 0 %}
   <p>Usage limits of the metric</p>
   <ul>
     {% for usage_limit in metric.usage_limits %}
       <li>{{ usage_limit.period }} : {{ usage_limit.value }}</li>
     {% endfor %}
   </ul>
 {% else %}
   <p>This metric has no usage limits</p>
{% endif %}
1.7.30.1.7. pricing_rules

메트릭의 가격 규칙을 반환합니다.

{% if metric.pricing_rules.size > 0 %}
  <p>Pricing rules of the metric</p>
  <ul>
  {% for pricing_rule in metric.pricing_rules %}
    <li>{{ pricing_rule.cost_per_unit }}</li>
  {% endfor %}
  </ul>

{% else %}
  <p>This metric has no pricing rules</p>
{% endif %}
1.7.30.1.8. has_parent

1.7.31. 페이지 드롭 (up)

1.7.31.1. 방법

1.7.31.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ page.errors.name | inline_errors }}
1.7.31.1.2. title

페이지 제목을 반환합니다.

<title>{{ page.title }}</title>
1.7.31.1.3. system_name

페이지의 시스템 이름을 반환합니다.

{% if page.system_name == 'my_page' %}
  {% include 'custom_header' %}
{% endif %}

1.7.32. 페이지 드롭 (up)

1.7.32.1. 방법

1.7.32.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ page.errors.name | inline_errors }}
1.7.32.1.2. title
1.7.32.1.3. kind
1.7.32.1.4. url
1.7.32.1.5. description

1.7.33. 페이지 번호 드롭 (up)

1.7.33.1. 방법

1.7.33.1.1. page_size

하나의 전체 페이지에 있는 항목 수입니다.

  {% for part in pagination.parts %}
    {% if part.is_link %}
      {% case part.rel %}
      {% when 'previous' %}
        {% assign css_class = 'previous_page' %}
      {% when 'next' %}
        {% assign css_class = 'next_page' %}
      {% else %}
        {% assign css_class = '' %}
      {% endcase %}

      <a class="{{ css_class }}" rel="{{ part.rel}}" href="{{ part.url }}">{{ part.title }}</a>
    {% else %}
      {% case part.rel %}
      {% when 'current' %}
         <em class="current">{{ part.title }}</em>
      {% when 'gap' %}
         &#x2026;
      {% else %}
         {{ part.title }}
      {% endcase %}
    {% endif %}
  {% endfor %}


<!-- Outputs:
  ============================================

  <a class="previous_page" rel="prev" href="?page=7">&#x2190; Previous</a>
  <a rel="start" href="?page=1">1</a>
  <a href="?page=2">2</a>
  <a href="?page=3">3</a>
  <a href="?page=4">4</a>
  <a href="?page=5">5</a>
  <a href="?page=6">6</a>
  <a rel="prev" href="?page=7">7</a>
  <em class="current">8</em>
  <a rel="next" href="?page=9">9</a>
  <a href="?page=10">10</a>
  <a href="?page=11">11</a>
  <a href="?page=12">12</a>
  &#x2026;
  <a href="?page=267">267</a>
  <a href="?page=268">268</a>
  <a class="next_page" rel="next" href="?page=9">Next &#x2192;</a>

=======================================
-->
1.7.33.1.2. current_page

현재 선택한 페이지의 수입니다.

1.7.33.1.3. current_offset

지금까지 건너뛴 항목입니다.

1.7.33.1.4. pages

총 페이지 수입니다.

1.7.33.1.5. items

모든 페이지의 총 항목 수입니다.

1.7.33.1.6. 이전

이전 페이지 또는 비어 있는 페이지 번호입니다.

1.7.33.1.7. 다음

다음 페이지 또는 비어 있는 페이지 수입니다.

1.7.33.1.8. 부분

사용자에게 친숙한 pagination을 렌더링하는 데 도움이 되는 요소 자세한 내용은 [[part-drop[part drop]]을 참조하십시오.

1.7.34. 부분 드롭 (up)

1.7.34.1. 방법

1.7.34.1.1. url
1.7.34.1.2. rel
1.7.34.1.3. current?
1.7.34.1.5. title
1.7.34.1.6. to_s

1.7.35. PaymentGateway drop (up)

1.7.35.1. 방법

1.7.35.1.1. braintree_blue?

현재 결제 게이트웨이가 braintree>-<s.com인지 여부를 반환합니다.

1.7.35.1.2. authorize_net?

현재 결제 게이트웨이가 authorize.Net인지 여부를 반환합니다.

1.7.35.1.3. type

이 결제 게이트웨이의 유형을 반환합니다.

1.7.36. PaymentTransaction 드롭 (up)

1.7.36.1. 방법

1.7.36.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ payment_transaction.errors.name | inline_errors }}
1.7.36.1.2. 통화

통화 반환

{% for payment_transaction in invoice.payment_transactions %}
  <tr>
    <td> {% if payment_transaction.success? %} Success {% else %} Failure {% endif %} </td>
    <td> {{ payment_transaction.created_at }} </td>
    <td> {{ payment_transaction.reference }} </td>
    <td> {{ payment_transaction.message }} </td>
    <td> {{ payment_transaction.amount }} {{ payment_transaction.currency }} </td>
  </tr>
{% endfor %}
1.7.36.1.3. 수량

수량을 반환합니다.

1.7.36.1.4. created_at

생성 날짜를 반환합니다.

1.7.36.1.5. 성공 사례?

성공인 경우 true를 반환합니다.

1.7.36.1.6. message

트랜잭션의 메시지 반환

1.7.36.1.7. reference

참조 반환

1.7.37. PlanFeature drop (up)

1.7.37.1. 방법

1.7.37.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ plan_feature.errors.name | inline_errors }}
1.7.37.1.2. name

기능 이름을 반환합니다.

<h2>Feature {{ feature.name }}</h2>
1.7.37.1.3. description

기능에 대한 설명을 반환합니다.

1.7.37.1.4. has_description?

기능에 설명이 있는지 여부를 반환합니다.

{% if feature.has_description? %}
  {{ feature.description }}
{% else %}
   This feature has no description.
{% endif %}
1.7.37.1.5. 활성화하시겠습니까?

1.7.38. Post drop (up)

1.7.38.1. 방법

1.7.38.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ post.errors.name | inline_errors }}
1.7.38.1.2. body

POST의 텍스트입니다.

1.7.38.1.3. 주제

모든 게시물은 [topic-drop]에 속합니다.

1.7.38.1.4. created_at

이 게시물이 생성된 날짜

{{ post.created_at | date: i18n.short_date }}
1.7.38.1.5. url

주제 내에서 이 게시물의 URL

1.7.39. Post drop (up)

1.7.39.1. 방법

1.7.39.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ post.errors.name | inline_errors }}
1.7.39.1.2. title
1.7.39.1.3. kind
1.7.39.1.4. url
1.7.39.1.5. description

1.7.40. pricingRule drop (up)

1.7.40.1. 방법

1.7.40.1.1. cost_per_unit

가격 규칙의 단위당 비용 반환 예: 유동 에서 가격 규칙 삭제 사용

<h2>Pricing rule</h2>
Min value {{ pricing_rule.min }}
Max value {{ pricing_rule.max }}
Cost per unit {{ pricing_rule.cost_per_unit }}
1.7.40.1.2. 분

가격 규칙의 최소값을 반환합니다.

1.7.40.1.3. max

가격 규칙의 최대값을 반환합니다.

1.7.40.1.4. 계획

가격 규칙에 대한 반환 계획

1.7.41. 공급자 드롭 (up)

1.7.41.1. 방법

1.7.41.1.1. name

조직 이름을 반환합니다.

Domain {{ provider.domain }}

{% if provider.multiple_applications_allowed? %}

     <p>Applications</p>
     <ul>
     {% for app in account.applications %}
       <li>{{ app.name }}</li>
     {% endfor %}
     </ul>

{% else %}
   Application {{ account.applications.first.name }}
{% endif %}

For general questions contact us at {{ provider.support_email }},
for invoice or payment related questions contact us at {{ provider.finance_support_email }}
1.7.41.1.2. payment_gateway

조직과 연결된 결제 게이트웨이를 반환합니다.

1.7.41.1.3. domain

개발자 포털 도메인

1.7.41.1.4. timezone

사용하는 시간대를 반환합니다. 관리 포털에서 시간대를 변경할 수 있습니다. 대시보드 > 계정 설정을 선택합니다. 개요 페이지에서 계정 세부 정보 까지 아래로 스크롤하고 편집 을 클릭하고 시간대 필드를 수정합니다.

1.7.41.1.5. support_email

계정 이메일 지원

1.7.41.1.6. finance_support_email

계정의 financial 지원 이메일

1.7.41.1.7. telephone_number

계정의 전화 번호를 반환합니다.

1.7.41.1.8. multiple_applications_allowed?

개발자가 자체 키, 통계 등을 사용하여 더 별도의 애플리케이션을 보유할 수 있는 경우 True입니다. 이는 3scale 계획에 따라 다릅니다.

{% if provider.multiple_applications_allowed? %}

     <p>Applications</p>
     <ul>
     {% for app in account.applications %}
       <li>{{ app.name }}</li>
     {% endfor %}
     </ul>

{% else %}
   Application {{ account.applications.first.name }}
{% endif %}
1.7.41.1.9. logo_url

로고 URL 반환

1.7.41.1.10. multiple_services_allowed?

3scale 계획을 통해 여러 API를 별도의 서비스로 관리할 수 있는 경우 True입니다.

{% if provider.multiple_services_allowed? %}
  {% for service in provider.services %}
     Service {{ service.name }} is available.
  {% endfor %}
{% endif %}
1.7.41.1.11. financial_allowed?
1.7.41.1.12. multiple_users_allowed?

개발자 계정에 연결된 로그인이 여러 개 있을 수 있는 경우 True입니다. 이는 3scale 계획에 따라 다르며 Audience > Developer Portal > Feature Visibility 의 관리 포털에서 개발자 포털에 대한 가시성이 설정되어 있는지에 따라 달라집니다.

{% if provider.multiple_users_allowed? %}
  <ul id="subsubmenu">
    <li>
       {{ 'Users' | link_to: urls.users }}
    </li>
    <li>
      {{ 'Sent invitations' | link_to: urls.invitations }}
    </li>
  </ul>
{% endif %}
1.7.41.1.13. account_plans

게시된 모든 계정 계획을 반환합니다.

<p>We offer following account plans:</p>
<ul>
{% for plan in model.account_plans %}
  <li>{{ plan.name }} </li>
{% endfor %}
</ul>
1.7.41.1.14. services

정의된 모든 서비스를 반환합니다.

<p>You can signup to any of our services!</p>
<ul>
{% for service in provider.services %}
  <li>{{ service.name }} <a href="/signup/service/{{ service.system_name }}">Signup!</a></li>
{% endfor %}
1.7.41.1.15. signups_enabled?

Audience > Accounts > Settings > Usage Rules>의 3scale 관리 포털에서 서명을 활성화하거나 비활성화할 수 있습니다.

1.7.41.1.16. account_management_enabled?

Audience > Accounts > Settings > Usage Rules>의 3scale 관리 포털에서 계정 관리를 활성화하거나 비활성화할 수 있습니다.

1.7.42. ReferrerFilter 드롭 (up)

1.7.42.1. 방법

1.7.42.1.1. id
1.7.42.1.2. value
1.7.42.1.3. delete_url
1.7.42.1.4. 애플리케이션

1.7.43. 요청 드롭 (up)

예: 유량에서 요청 드롭 사용

<h2>Request details</h2>
URI {{ request.request_uri }}
Host {{ request.host }}
Host and port {{ request.host_with_port }}

1.7.43.1. 방법

1.7.43.1.1. request_uri

요청 URI를 반환합니다.

1.7.43.1.2. host_with_port

요청 포트와 함께 호스트를 반환합니다.

1.7.43.1.3. host

요청 URL의 호스트 부분을 반환합니다.

1.7.43.1.4. path

요청 URL의 경로 부분을 반환합니다.

{% if request.path == '/' %}
  Welcome on a landing page!
{% else %}
  This just an ordinary page.
{% endif %}

1.7.44. 역할 드롭 (up)

1.7.44.1. 방법

1.7.44.1.1. name

시스템에 중요한 역할의 내부 이름을 반환합니다.

1.7.44.1.2. description

역할의 설명이 포함된 텍스트 반환

1.7.45. 검색 드롭 (up)

1.7.45.1. 방법

1.7.45.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ search.errors.name | inline_errors }}
1.7.45.1.2. query

검색된 문자열을 반환합니다.

<h3>{{ search.token }}</h3>
<p>found on {{ search.total_found }} {{ search.item | pluralize }} </p>
<dl>
  {% for result in search.results %}
    <dt>
       [ {{ result.kind | capitalize}} ]
      {{ result.title | link_to: result.url }}
    </dt>
    <dd>
      {{ result.description }}
    </dd>
  {% endfor %}
</dl>
1.7.45.1.3. total_found

일치하는 요소 수를 반환합니다.

1.7.45.1.4. 결과

que search에 대한 결과의 배열

1.7.46. 서비스 드롭 (up)

1.7.46.1. 방법

1.7.46.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ service.errors.name | inline_errors }}
1.7.46.1.2. name

서비스 이름을 반환합니다.

1.7.46.1.3. system_name

서비스의 시스템 이름을 반환합니다.

{% case service.system_name %}
{% when 'api' %}
  API is our newest service!
{% when 'old' %}
  Unfortunately we dont allow more signups to our old service.
{% endcase %}
1.7.46.1.4. description

서비스에 대한 설명을 반환합니다.

1.7.46.1.5. 서브스크립션하시겠습니까?

서비스가 서브스크립션되었는지 여부를 반환합니다.

{% if service.subscribed? %}
   <p>You already subscribed this service.</p>
{% endif %}
1.7.46.1.6. subscription

현재 로그인한 사용자가 이 서비스에 가입된 경우 서브스크립션을 반환합니다. 그렇지 않으면 Nil을 반환합니다.

{% if service.subscription %}
   Your applications for service {{ service.name }} are:
   {% for app in service.subscription.applications %}
     {{ app.name }}<br/>
   {% endfor %}
{% else %}
   <p>You are not subscribed to this.</p>
{% endif %}
1.7.46.1.7. 서브스크립션 가능?
1.7.46.1.8. subscribe_url
1.7.46.1.9. application_plans

게시된 서비스 애플리케이션 계획을 반환합니다.

{% for service in model.services %}
  <h4>{{ service.name }} application plans:</h4>
  <dl>
  {% for application_plan in service.application_plans %}
    <dt>{{ application_plan.name }}</dt>
    <dd>{{ application_plan.system_name }}</dd>
  {% endfor %}
  </dl>
{% endfor %}
1.7.46.1.10. service_plans

게시된 서비스 계획을 반환합니다.

<p>We offer following service plans:</p>
<dl>
{% for service in model.services %}
  {% for service_plan in service.service_plans %}
    <dt>{{ service_plan.name }}</dt>
    <dd>{{ service_plan.system_name }}</dd>
  {% endfor %}
{% endfor %}
</dl>
1.7.46.1.11. 계획

서비스의 애플리케이션 계획을 반환합니다.

1.7.46.1.12. features

서비스의 표시 기능을 반환합니다.

{% if service.features.size > 0 %}
  <p>{{ service.name }} has following features:</p>
  <ul>
  {% for feature in service.features %}
    <li>{{ feature.name }}</li>
  {% endfor %}
  </ul>
{% else %}
  <p>Unfortunately, {{ service.name }} currently has no features.</p>
{% endif %}
1.7.46.1.13. apps_identifier

인증 모드 설정에 따라 OAuth 인증에 대한 'ID', 'API 키' 또는 'Client ID'를 반환합니다.

{{ service.application_key_name }}
1.7.46.1.14. backend_version
1.7.46.1.15. referrer_filters_required?
1.7.46.1.16. 메트릭

서비스의 메트릭을 반환합니다.

<p>On {{ service.name }} we measure following metrics:</p>
<ul>
{% for metric in service.metrics %}
  <li>{{ metric.name }}</li>
{% endfor %}
</ul>
1.7.46.1.17. support_email

서비스 이메일 지원

1.7.47. ServiceContract drop (up)

1.7.47.1. 방법

1.7.47.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ service_contract.errors.name | inline_errors }}
1.7.47.1.2. id
1.7.47.1.3. can_change_plan?

모든 변경이 가능한 경우 true를 반환합니다.

1.7.47.1.4. 평가판?

계약이 아직 평가판 기간 내에 있는 경우 true를 반환합니다.

참고: 계획의 평가판 기간을 변경하면 기존 계약에 영향을 미치지 않습니다.

1.7.47.1.5. 라이브?
1.7.47.1.6. 상태

세 가지 가능한 상태가 있습니다.

    - pending
    - live
    - suspended
1.7.47.1.7. remaining_trial_period_days

아직 평가판 기간에 남아 있는 날짜 수입니다.

1.7.47.1.8. 계획

계약 계획을 반환합니다.

1.7.47.1.9. plan_change_permission_name

허용된 작업의 이름을 반환합니다.

1.7.47.1.10. plan_change_permission_warning

허용된 작업의 경고 전달자 반환

1.7.47.1.11. 계약
1.7.47.1.12. name
1.7.47.1.13. system_name
1.7.47.1.14. change_plan_url
1.7.47.1.15. 서비스
1.7.47.1.16. 애플리케이션
1.7.47.1.17. 가능

해당 서브스크립션에 대한 현재 사용자의 특정 권한을 노출합니다.

{% if subscription.can.change_plan? %}
  ...
{% endif %}

1.7.48. SERVICEPLAN 드롭 (up)

1.7.48.1. 방법

1.7.48.1.1. 선택됨

계획이 선택되었는지 여부를 반환합니다.

{% if plan.selected? %}
  <p>You will signup to {{ plan.name }}</p>
{% endif %}
1.7.48.1.2. 구매했습니까?

계획이 구매되었는지 여부를 반환합니다.

{% if plan.bought? %}
   <p>You are  on this plan already!</p>
{% endif %}
1.7.48.1.3. features

계획의 표시 기능을 반환합니다.

{% if plan == my_free_plan %}
   <p>These plans are the same.</p>
{% else %}
   <p>These plans are not the same.</p>
{% endif %}
1.7.48.1.4. setup_fee

계획의 설정 비용을 반환합니다.

1.7.48.1.5. name

계획의 이름을 반환합니다.

<h2>We offer you a new {{ plan.name }} plan!</h2>
1.7.48.1.6. system_name

계획의 시스템 이름을 반환합니다.

{% for plan in available_plans %}
  {% if plan.system_name == 'my_free_plan' %}

    <p>You will buy our only free plan!</p>
  {% endif %}
{% endfor %}
1.7.48.1.7. id

계획 ID 반환

1.7.48.1.8. 무료입니까?

이 계획은 지불 되지 않은 경우 무료입니다. 유료 방법을 참조하십시오.

{% if plan.free? %}
   <p>This plan is free of charge.</p>
{% else %}

     <p>Plan costs</p>
     Setup fee {{ plan.setup_fee }}
     Flat cost {{ plan.flat_cost }}

{% endif %}
1.7.48.1.10. approval_required?

계획이 승인이 필요한지 여부를 반환합니다.

{% if plan.approval_required? %}
   <p>This plan requires approval.</p>
{% endif %}
1.7.48.1.11. flat_cost

계획의 월간 고정 요금을 반환합니다.

1.7.48.1.12. 서비스

예: 유동에서 서비스 계획 드롭 사용

<p class="notice">The examples for plan drop apply here</p>
Service of this plan {{ plan.service.name }}

1.7.49. timezone drop (up)

1.7.49.1. 방법

1.7.49.1.1. full_name
1.7.49.1.2. to_str

1.7.50. 오늘 드롭 (up)

1.7.50.1. 방법

1.7.50.1.1. 월

현재 달 (1-12)을 반환합니다.

1.7.50.1.2. 일

달의 현재 날짜 (1-31)를 반환합니다.

1.7.50.1.3. 년

현재 연도를 반환합니다. 동적 저작권 생성

&copy;{{ today.year }}
1.7.50.1.4. beginning_of_month

현재 월의 시작 날짜를 반환합니다.

This month began on {{ today.beginning_of_month | date: '%A' }}

1.7.51. 주제 드롭 (up)

1.7.51.1. 방법

1.7.51.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ topic.errors.name | inline_errors }}
1.7.51.1.2. title
1.7.51.1.3. kind
1.7.51.1.4. url
1.7.51.1.5. description

1.7.52. 주제 드롭 (up)

1.7.52.1. 방법

1.7.52.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ topic.errors.name | inline_errors }}
1.7.52.1.2. title

주제의 이름입니다. 스레드에 대한 첫 번째 게시가 게시될 때 제출됩니다.

1.7.52.1.3. url

1.7.53. URL 드롭 (up)

1.7.53.1. 방법

1.7.53.1.1. to_s
1.7.53.1.2. to_str
1.7.53.1.3. title
1.7.53.1.4. current_or_subpath?

true 현재 페이지의 경로가 URL에 대한 경로와 동일하거나 직접 하위 경로 인 경우, 즉 ID로 확장됩니다. 예를 들어 {{ urls.outbox }} 를 사용하면 true가 반환됩니다.

  • /admin/sent/messages/received
  • /admin/sent/messages/received/42

그러나 다음과 같은 것은 아닙니다.

  • /admin/sent/messsages/new
  • /admin/sent/messsages/longer/subpath

'#active?', '#current?'도 참조하십시오.

1.7.53.1.5. current?

URL 경로가 현재 경로와 동일한 경우 True입니다. 매개변수 및 기타 구성 요소는 고려하지 않습니다. 예를 들면 #active?

{% assign url = urls.messages_inbox %}
<!-- => http://awesome.3scale.net/admin/messages/sent -->

<!-- Current page: http://awesome.3scale.net/admin/messages/sent?unread=1 -->
{{ url.current? }} => true

<!-- Current page: http://awesome.3scale.net/admin/messages -->
{{ url.current? }} => false
1.7.53.1.6. 활성 상태입니까?

현재 페이지가 이 URL과 동일한 메뉴 구조에 있는 경우 True입니다. 자세한 내용은 #current? 를 참조하십시오.

{% assign url = urls.messages_inbox %}
<!-- => http://awesome.3scale.net/admin/messages/sent -->

<!-- Current page: http://awesome.3scale.net/admin/messages -->
{{ url.active? }} => true

<!-- Current page: http://awesome.3scale.net/admin/messages/trash -->
{{ url.active? }} => true

<!-- Current page: http://awesome.3scale.net/admin/stats -->
{{ url.active? }} => false

1.7.54. URL 삭제 (up)

1.7.54.1. 방법

1.7.54.1.1. provider
1.7.54.1.2. cas_login
<a href="{{ urls.signup }}">signup here</a>
<a href="{{ urls.service_subscription }}">subscribe to a service here</a>
1.7.54.1.3. new_application
1.7.54.1.4. 등록

등록 페이지의 URL입니다. 모든 사람이 액세스할 수 있습니다.

<a href="{{ urls.signup }}?{{ service_plan | param_filter }}&{{ app_plan | param_filter }}" >Signup Now!</a>
1.7.54.1.6. login
1.7.54.1.7. logout
1.7.54.1.8. forgot_password
1.7.54.1.9. service_subscription

서비스 서브스크립션 페이지의 URL입니다. 로그인한 사용자에게만 해당됩니다.

<a href="{{ urls.service_subscription }}?{{ service_plan | param_filter }}" >
  Subscribe to service {{ service.name }}
</a>
1.7.54.1.10. compose_message

내부 메시징 시스템을 통해 개발자 연락처 공급자를 허용하는 페이지에 대한 URL입니다.

1.7.54.1.11. messages_outbox

개발자가 보낸 메시지 목록에 대한 URL입니다.

1.7.54.1.12. messages_trash
1.7.54.1.13. empty_messages_trash
1.7.54.1.14. credit_card_terms
1.7.54.1.15. credit_card_privacy
1.7.54.1.16. credit_card_refunds
1.7.54.1.17. 사용자
1.7.54.1.18. personal_details

사용자 계정 관리가 비활성화된 경우 URL 또는 Nil입니다. Audience > Accounts > Settings > Usage Rules >의 3scale 관리 포털에서 사용 규칙을 확인합니다.

1.7.54.1.19. access_details

API 키 및 기타 인증 정보가 있는 페이지입니다. 인증 전략에 따라 다릅니다.

1.7.54.1.20. payment_details
1.7.54.1.21. new_invitation

새 사용자를 초대하기 위한 페이지

1.7.54.1.22. 초대

전송된 모든 초대 목록

1.7.54.1.23. 대시보드
1.7.54.1.24. 애플리케이션
1.7.54.1.25. api_access_details
1.7.54.1.26. services
1.7.54.1.27. messages_inbox

수신된 메시지 목록의 URL입니다.

1.7.54.1.28. 통계
1.7.54.1.29. account_overview
1.7.54.1.30. account_plans
1.7.54.1.31. 송장

1.7.55. UsageLimit drop (up)

예: 유동에서 사용량 제한 드롭 사용

You cannot do more than {{ limit.value }} {{ limit.metric.unit }}s per {{ limit.period }}

1.7.55.1. 방법

1.7.55.1.1. 기간

사용 제한 기간을 반환합니다.

1.7.55.1.2. 메트릭

일반적으로 히트 하지만 모든 사용자 지정 방법이 될 수 있습니다.

1.7.55.1.3. value

사용량 제한 값을 반환합니다.

1.7.56. 사용자 드롭 (up)

<h2>User {{ user.display_name }}</h2>
Account {{ user.account.name }}
Username {{ user.username }}
Email {{ user.email }}
Website {{ user.website }}

1.7.56.1. 방법

1.7.56.1.1. 오류

제출에 실패한 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ user.errors.name | inline_errors }}
1.7.56.1.2. admin?

사용자가 관리자인지 여부를 반환합니다.

{% if user.admin? %}
  <p>You are an admin of your account.</p>
{% endif %}
1.7.56.1.3. 사용자 이름

사용자의 사용자 이름 html 이스케이프를 반환합니다.

1.7.56.1.4. 계정

사용자 계정을 반환합니다.

1.7.56.1.5. name

사용자의 이름과 첫 번째 이름을 반환합니다.

1.7.56.1.6. email

사용자의 이메일을 반환합니다.

1.7.56.1.7. password_required?

이 방법은 Janrain, CAS 또는 기타 Single Sign-On 방법을 통해 인증된 사용자를 위해 기본 제공 개발자 포털 인증 메커니즘을 사용하는 사용자에게 true 를 반환합니다.

{% if user.password_required? %}


{% endif %}
1.7.56.1.8. 섹션

사용자가 액세스할 수 있는 섹션 목록을 반환합니다.

{% if user.sections.size > 0 %}
  <p>You can access following sections of our portal:</p>
   <ul>
    {% for section in user.sections %}
      <li>{{ section }}</li>
    {% endfor %}
  </ul>
{% endif %}
1.7.56.1.9. role

사용자의 역할을 반환합니다.

1.7.56.1.10. roles_collection

Retuns a list of available roles for the user

{% for role in user.roles_collection %}
  <li>
    <label for="user_role_{{ role.key }}">

      {{ role.text&nbsp;}}
    </label>
    </li>
  {% endfor %}
1.7.56.1.11. url

사용자의 리소스 URL 반환

{{ 'Delete' | delete_button: user.url }}
1.7.56.1.12. edit_url

사용자를 편집하기 위해 URL을 반환

{{ 'Edit' | link_to: user.edit_url, title: 'Edit', class: 'action edit' }}
1.7.56.1.13. 가능

권한 방법에 대한 액세스 권한 부여

{% if user.can.be_managed? %}
  <!-- do something -->
{% endif %}
1.7.56.1.14. extra_fields

이 사용자 예: 모든 추가 필드를 인쇄합니다.

{% for field in user.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.56.1.15. 필드

이 사용자 예: 모든 필드의 값을 사용하여 모든 필드를 반환합니다.

{% for field in user.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.56.1.16. builtin_fields

이 사용자에 대한 값이 있는 기본 제공 필드를 모두 반환합니다.

1.8. 태그 (최대)

1.8.1. 태그 '#159tree_customer_form' (up)

Braintree Blue 결제 게이트웨이에 필요한 데이터를 입력할 수 있는 양식을 렌더링합니다.

1.8.2. 태그 'csrf' (up)

교차 사이트 요청 위조 메타 태그를 렌더링합니다.

예: 유동에서 csrf 태그 사용

  <head>
    {% csrf %}
  </head>

1.8.3. 태그 'content' (up)

페이지의 본문을 렌더링합니다. 레이아웃 내에서만 이 값을 사용합니다.

1.8.4. 태그 'content_for' (up)

1.8.5. 태그 'debug' (up)

템플릿에서 사용할 수 있는 모든 유동 변수를 HTML 주석에 출력합니다. 이 태그는 공용 템플릿에서 제거하는 것이 좋습니다.

`{% debug:help %}`

1.8.6. 태그 'email' (up)

email 태그를 사용하면 발신 이메일의 헤더를 사용자 지정할 수 있으며 이메일 템플릿 내에서만 사용할 수 있습니다.

작업을 단순화하는 cc 또는 subject (아래 표 참조)와 같은 여러 가지 편의성 하위 태그가 있지만 헤더 하위 태그를 사용하여 메시지의 임의의 SMTP 헤더를 설정할 수도 있습니다.

Subtag

설명

예제

제목

동적 제목

{% subject = 'Greetings from Example company!' %}

cc

탄소 복사본

{% cc = 'boss@example.com' %}

bcc

맹인탄 복사

{% bcc = 'all@example.com' %}

from

실제 발신자

{% from = 'system@example.com' %}

reply-to

 

{% reply-to = 'support@example.com'%}

header

사용자 정의 SMTP 헤더

{% header 'X-SMTP-Group' = 'Important' %}

do_not_send

이메일 삭제

{% do_not_send %}

예: 조건부 맹인 탄소 복사

{% email %}
  {% if plan.system_name == 'enterprise' %}
     {% bcc 'marketing@world-domination.org' %}
  {% endif%}
{% endemail %}

예: 이메일 비활성화

{% email %}
  {% do_not_send %}
{% endemail %}

예: 서명 이메일 필터

{% email %}
  {% if plan.system == 'enterprise' %}
    {% subject = 'Greetings from Example company!' %}
    {% reply-to = 'support@example.com' %}
  {% else %}
    {% do_not_send %}
  {% endif %}
{% endemail %}

1.8.7. 태그 '플래시' (up)

시스템의 정보 또는 오류 메시지를 렌더링합니다.

DEPRECATED: 이 태그는 더 이상 사용되지 않으며 FlashDrop을 대신 사용합니다.

예: 유동에서 플래쉬 태그 사용

   {% flash %}

1.8.9. 태그 'form' (up)

양식 이름에 따라 지정된 action 및 class 특성을 사용하여 양식 태그를 렌더링합니다. 지원되는 양식은 다음과 같습니다.

양식

허용되는 필드 이름

스팸 보호

참고

application.create

  • application[name]
  • application[description]
  • application[<any-extra-field>]

없음

 

application.update

  • application[name]
  • application[description]
  • application[<any-extra-field>]

없음

 

등록

  • account[org_name]
  • account[org_legaladdress]
  • account[org_legaladdress_cont]
  • 계정[city]
  • account[state]
  • account[zip]
  • account[telephone_number]
  • account[country_id]
  • account[<any-extra-field>]
  • account[user][username]
  • account[user][email]
  • account[user][first_name]
  • account[user][last_name]
  • account[user][password]
  • account[user][password_confirmation]
  • account[user][title]
  • account[user][<any-extra-field>]

제공됨

이름이 plan_ids[] 인 하나 이상의 숨겨진 필드를 추가하여 선택한 계획에 직접 서명하십시오. 해당 이름의 매개변수가 현재 URL에 있는 경우 입력 필드가 자동으로 채워집니다.

예: 애플리케이션을 생성하는 양식

{% form 'application.create', application %}


   {{ application.errors.name | inline_errors }}


{% endform %}

1.8.10. 'latest_forum_posts' (up)태그

최신 포럼 게시물이 있는 HTML 테이블입니다.

DEPRECATED: 대신 포럼 을 사용합니다.

예: latest_forum_posts 태그 유동 사용

{% latest_forum_posts %}

1.8.11. 태그 'latest_messages' (up)

사용자의 최신 메시지와 함께 html 스니펫을 렌더링합니다.

예: latest_messages 태그 유동 사용

{% latest_messages %}

1.8.13. 태그 ' menu' (up)

DEPRECATED: 이 태그는 더 이상 사용되지 않으며, 대신 '{% include "menu" %}'를 사용합니다.

1.8.14. 태그 'oldfooter' (up)

footer html 스니펫을 렌더링합니다.

dePRECATED: 이 태그는 더 이상 사용되지 않습니다. 대신 개발자 포털을 부분적으로 사용합니다.

1.8.15. 태그 'plan_widget' (up)

애플리케이션 계획을 검토하거나 변경하는 위젯 포함

{% if application.can_change_plan? %}
  <a href="#choose-plan-{{ application.id }}"
     id="choose-plan-{{application.id}}">
    Review/Change
  </a>
  {% plan_widget application %}
{% endif %}

1.8.16. 태그 'portlet' (up)

이 태그에는 시스템 이름별 포트릿이 포함됩니다.

1.8.17. 태그 'sub menu' (up)

로그인한 사용자에 대한 하위 메뉴 html 스니펫을 렌더링합니다.

DEPRECATED: 이 태그는 더 이상 사용되지 않으며, 대신 'submenu' 부분만을 사용합니다.

예: 유동에서 하위 메뉴 태그 사용

   {% submenu %}

1.8.18. 태그 '3scale_essentials' (up)

1.8.19. 태그 'user_widget' (up)

사용자 위젯 HTML 스니펫을 렌더링합니다.

dePRECATED: 이 태그는 더 이상 사용되지 않습니다. 대신 개발자 포털을 부분적으로 사용합니다.

예: liquid에서 user_widget 태그 사용

   {% user_widget %}
    <p class="notice">If you are logged in you see profile related links above.</p>
    <p class="notice">If you are not login you are invited to login or signup.</p>

1.9. 필터 ()

1.9.1. FormHelpers 필터 (up)

1.9.1.1. error_class 필터

인수가 비어 있지 않은 경우 오류 클래스를 출력합니다. error_class를 사용하여 오류 클래스를 출력함

1.9.1.2. inline_errors 필터

예제: inline_errors를 사용하여 인라인 오류를 표시하도록 오류 필드를 인라인으로 출력

{{ form.errors.description | inline_errors }}

1.9.2. ParamFilter 필터 (up)

1.9.2.1. to_param 필터

가능한 경우 제공된 drop을 URL 매개변수로 변환합니다. 예: 유동에서 to_param 필터 사용

<h2>Signup to a service</h2>
<a href="{{ urls.signup }}?{{ service | to_param }}">Signup to {{ service.name }}</a>

1.9.3. 일반 필터 (up)

1.9.3.1. group_by 필터

몇 가지 주요 주요 예제별 그룹 컬렉션: 서비스별 그룹 애플리케이션

{% assign grouped = applications | group_by: 'service' %}
{% for group in grouped %}
  Service: {{ group[0 }}
  {% for app in group[1] %}
    Application: {{ app.name }}
  {% endfor %}
{% endfor %}

1.9.3.2. 모든 필터

컬렉션의 문자열이 매개 변수 예: 현재 계정의 보류 중인 애플리케이션이 있는 경우 true?

{% assign has_pending_apps = current_account.applications | map: 'state' | any: 'live' %}

1.9.3.4. javascript_include_tag filter

JavaScript include 태그

1.9.3.5. IMAGE_TAG 필터

매개 변수를 src 속성으로 사용하여 태그를 출력합니다.

{{ 'http://example.com/cool.gif' | image_tag }}
## =>

1.9.3.6. mail_to filter

이메일 주소를 'mailto' 링크로 변환합니다.

{{ 'me@there.is' | mail_to }}
## => <a href="mailto:me@there.is">me@there.is</a>

1.9.3.7. html_safe filter

콘텐츠를 HTML 안전으로 표시하여 이스케이프되지 않도록 합니다.

1.9.3.8. pluralize 필터

단어를 복수 형식으로 변환

1.9.3.9. delete_button 필터

URL에 있는 리소스를 삭제하는 버튼을 생성합니다. 첫 번째 매개 변수는 URL이고, 두 번째는 제목입니다. 더 많은 HTML 태그 속성을 세 번째 매개변수로 추가할 수도 있습니다.

{{ 'Delete Message' | delete_button: message.url, class: 'my-button' }}

1.9.3.10. delete_button_ajax filter

Cryostat를 사용하여 URL에 있는 리소스를 삭제하는 버튼을 생성합니다. 첫 번째 매개 변수는 URL이고, 두 번째는 제목입니다.

{{ 'Delete Message' | delete_button_ajax: message.url }}

1.9.3.11. update_button 필터

URL에 있는 리소스를 '업데이트'(HTTP PUT 요청)에 대한 버튼을 생성합니다. 첫 번째 매개 변수는 URL이고, 두 번째는 제목입니다. 더 많은 HTML 태그 속성을 세 번째 매개변수로 추가할 수도 있습니다.

{{ 'Resend' | update_button: message.url, class: 'my-button' }}

1.9.3.12. create_button 필터

URL에 있는 리소스를 생성하는 버튼을 생성합니다. 첫 번째 매개 변수는 URL이고, 두 번째는 제목입니다.

{{ 'Create Message' | create_button: message.url }}

1.9.3.13. create_button_ajax 필터

1.9.3.14. recreate_oauth_secret_button 필터

법적 공지

Copyright © 2024 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.