1.8.9. form タグ (up)

フォームの名前に応じて、アクションおよびクラス属性を指定して form タグをレンダリングします。サポートされるフォームは以下のとおりです。

フォーム

許可されるフィールド名

スパム対策

注記

application.create

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

いいえ

 

application.update

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

いいえ

 

signup

  • account[org_name]
  • account[org_legaladdress]
  • account[org_legaladdress_cont]
  • account[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[] の名前で 1 つまたは複数の非表示フィールドを追加して、希望するプランに直接サインアップします。現在の URL にそのような名前のパラメーターがあれば、自動的に入力フィールドに反映されます。

例: アプリケーションを作成するためのフォーム

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


   {{ application.errors.name | inline_errors }}


{% endform %}