Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Slim Ruby on Rails: Controllers & Middlewares

Slim Ruby on Rails: Controllers & Middlewares

Krzysztof Wawer

June 21, 2017
Tweet

More Decks by Krzysztof Wawer

Other Decks in Programming

Transcript

  1. 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. 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