タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

ruby-family-programming-languageとruby-on-railsとactionviewに関するnabinnoのブックマーク (3)

  • ActionView::Helpers::FormHelper

    Form helpers are designed to make working with resources much easier compared to using vanilla HTML. Typically, a form designed to create or update a resource reflects the identity of the resource in several ways: (i) the url that the form is sent to (the form element's action attribute) should result in a request being routed to the appropriate controller action (with the appropriate :id paramete

  • レイアウトとレンダリング - Railsガイド

    ガイドでは、Action ControllerとAction Viewによる基的なレイアウト機能について解説します。 ガイドの内容: Railsに組み込まれているさまざまなレンダリング(出力)メソッドの利用法 複数のセクションでレイアウトを作成する方法 パーシャルを利用してビューをDRYにする方法 レイアウトをネストする方法(サブテンプレート) 1 レンダリングの概要 ガイドでは、「コントローラ・ビュー・モデル」三角形のうち、コントローラとビューの間でのやりとりを中心に扱います。ご存じのように、Railsのコントローラはリクエスト処理プロセス全体の制御を担当し、(ビジネスロジックのような)重い処理はモデルの方で行なうのが普通です。モデルの処理が完了すると、コントローラは処理結果をビューに渡し、ビューはユーザーにレスポンスを返します。ガイドでは、コントローラからビューに結果を渡す方

    レイアウトとレンダリング - Railsガイド
  • Action View の概要 - Railsガイド

    このガイドの内容: Action Viewの概要とRailsでの利用法 テンプレート、パーシャル(部分テンプレート)、レイアウトの最適な利用法 Action Viewで提供されるヘルパーの紹介 ビューのローカライズ方法 1 Action Viewについて Action Viewは、MVCのVに相当し、Action Controllerと連携してWebリクエストを処理します。Action Controllerは(MVCにおける)モデル層とのやりとりやデータの取得を担当し、次にAction Viewがそのデータを利用してWebリクエストに対するレスポンスのbody(文)をレンダリングします。 デフォルトのAction Viewテンプレート(単に「ビュー」とも呼ばれます)は、HTMLドキュメント内にRubyコードを記述可能にするERB(Embedded Ruby)で記述します。 Action

    Action View の概要 - Railsガイド
  • 1