!SLIDE
!SLIDE
- ActionDispatch が dispatch する先
- MVC の まさに C(まさに)
!SLIDE
ActionController::Base ← ActionController::Metal ← AbstractConroller::Base
!SLIDE
- 低レベルなAPIを提供するクラス
- controllerの名前やファイルパスを見つけるとか
- actionをdispatchするためのメソッドとか
!SLIDE
- 普段何気なく使っているRailsのControllerの便利な機能を何も提供しない最低限のController
- 多分ベアメタル的な意味合いでMetal?
!SLIDE
Think of Rails Metal as a subset of middleware intended for application-specific end points that need the extra speed (“write to the metal”, hence the name). スピードが必要なとき
render
も存在しない
!SLIDE
AbstractController::Rendering AbstractController::Translation AbstractController::AssetPaths Helpers UrlFor Redirecting ActionView::Layouts Rendering Renderers::All ConditionalGet EtagWithTemplateDigest Caching MimeResponds ImplicitRender StrongParameters Cookies Flash FormBuilder RequestForgeryProtection ForceSSL Streaming DataStreaming HttpAuthentication::Basic::ControllerMethods HttpAuthentication::Digest::ControllerMethods HttpAuthentication::Token::ControllerMethods AbstractController::Callbacks Rescue Instrumentation ParamsWrapper