Slim Ruby on Rails: Controllers & Middlewares

Slim Ruby on Rails: Controllers & Middlewares

794f638b6f7f5132d5a13230e61c9db2?s=128

Krzysztof Wawer

June 21, 2017
Tweet

Transcript

  1. 6.

    Ruby on Rails Middleware stack $ rails new app $

    rails new app --api $ rake middleware http://guides.rubyonrails.org/rails_on_rack.html#configuring-middleware-stack
  2. 7.

    Ruby on Rails Middleware stack use Rack::MethodOverride use Sprockets::Rails::QuietAssets use

    WebConsole::Middleware use ActionDispatch::Cookies use ActionDispatch::Session::CookieStore use ActionDispatch::Flash http://guides.rubyonrails.org/rails_on_rack.html#configuring-middleware-stack
  3. 12.
  4. 13.
  5. 18.