Menu
Sandip Subedi logoSandip SubediRuby on Rails DocsBlog
On GitHub
🌜
🌞
Sandip Subedi logoSandip Subedi
  • Ruby on Rails Docs
  • Blog
  • On GitHub
  • Main
    • Ruby on Rails
  • ActiveRecord
    • Callbacks
    • Distinct
    • Eager Loading
    • Group
    • Includes vs Joins
    • Joins
    • Lazy Loading
    • Migration
    • Naming Convention
    • Storing JSON on postgres
    • Table Lock during migration
    • Transaction
  • Bundler
    • Exec
  • DataStructures
    • Arrays Method
    • Arrays
    • Collection Classes
    • Enumerable Module custom created
    • Enumerable Module
    • Enumerator Class
    • Hash Methods
    • Hash
    • Length vs Size vs Count
    • Queue
    • Set
    • Sized Queue
    • Sorted Set
    • Stack
  • DesignPatterns
    • Design Patterns
    • Adaptor Design Pattern
    • Anti Pattern
    • Common Design Patterns in Rails
    • Decorator
    • Model View Controller(MVC)
    • Separation of Concerns
    • Service Objects
    • Single Responsibilty Principle (SRP)
    • Singleton Design Pattern
  • Gems
    • aasm
    • Dependency Conflict
    • Gemfile
    • Rack
    • Rake
    • Reek - Code Smell Detector
    • Resque
    • Retriable
    • Strong Migrations
    • Zeitwerk - Code Loader
  • Rails
    • ApiMode
      • Api Mode
      • Building JSON API
    • CRUD
      • CRUD, Verbs and Actions
    • Generate
      • Generate
      • model
    • Routes
      • Breaking routes.rb into different files
      • On Member vs On Collection
      • Namespace vs Resources
      • Routes
      • Scope
    • Install
    • Before Action
    • Callbacks
    • Concerns
    • Convention Over Configuration
    • Generate UML Diagram
    • HashWithIndifferent
    • i18n
    • Middleware
    • Observers
    • Performance
    • Polymorphic Association
    • Rake
    • Security
    • Session
    • Terminal Commands
    • Asset Pipeline to WebPacker
  • Rspec
    • Rspec
    • Testing
  • Ruby
    • Advanced
      • ActiveRecord Scopes
      • Closures
      • Lambda vs Proc
      • Lambda
      • Meta Programming
      • Proc (Procdures)
    • Blocks
      • Blocks
      • Yield
    • Cloning
      • Clone
      • Deep Copy
      • Dup
      • Shallow Copy
      • Trivial vs No Trivial
    • Conditionals
      • Conditional Assignment
      • If/Else
      • Lazy evaluation of conditionals
      • Switch
    • Constants
      • Constants on Object
      • Constants
      • Freeze
      • Frozen String Literal
      • Frozen
      • Private Constant
    • DataTypes
      • Convert
      • Float
      • Integer
      • String
      • Symbol
      • Type of Object
    • Getter_Setter
      • Attr Accessor
      • Attr Reader
      • Attr Writer
      • Getter and Setter
    • Instance_vs_Class
      • Class Method
      • Class Variable
      • Instance Method
      • Instance Variable
    • InterestingKeyWords
      • &=
      • << Shovel Operator
      • <=> SpaceShip Operator
      • Double pipe equals/ Or Equals
      • Equal Tilde
      • Bang (!)
    • Loops
      • Each
      • Loop
      • Step
      • Times
      • Until
      • While
    • Memory
      • Garbage Collector
      • How ruby uses memory
    • Methods
      • Double Splat
      • kwargs
      • Params Ruby
      • Send
      • Splat
      • Ways to call method
    • OOPS
      • Class
      • Eigen Class
      • Any ruby objects can be evaluated as boolean
      • Include vs Extend
      • Include vs Require
      • Inheritance
      • Lexical Scoping
      • Mixins
      • Module Nesting
      • Module vs Class
      • Module
      • Object
      • Self
      • Singleton Class
      • Singleton Method
      • Super
    • Ruby_vs_Java
      • Increment Operators
    • Sorting
      • Custom Sort
      • Sort Hash
      • Sort String
      • Sort vs SortBy
      • Sort
    • Threads
      • Thread
      • Thread pooling
    • Typing
      • Duck Typing
      • Dynamic Typing
      • Typed
    • Visibility
      • Private Class method
      • Private from Super class
      • Protected from super class
      • Public from super class
      • Method visibility in Ruby
    • By Value vs By Ref
    • Comments
    • Ruby Documentation in Command Line
    • Enums
    • Error
    • Print vs Puts vs P vs putc
    • Rails vs Ruby Methods
    • Respond to
  • Ruby_3
    • Scalability
  • RubyMethods
    • Collect
    • Delete If
    • Each Slice
    • Eq vs Eql
    • Lines
    • Map vs Collect vs Each
    • Reduce and Inject
    • Select
    • SubString
    • Sum of Numbers
  • RubyVersionManager
    • Ruby Version Manager
    • RBENV
  • Testing
    • Testing private methods
  • EventualConsistency
    • Eventual Consistency
  • InterviewPrep
    • Interview Prep
  • Mistakes
    • Mistakes while learning Rails
  • Performance
    • Performance
  • Pry
    • pry
  • ReloadConsole
    • Reload Console
  • UpgradingRuby
    • Upgrading Ruby
  • Resources
    • Blogs
    • Books
    • Conferences
    • Courses
    • Forum
    • Online
    • Popular Rails repo

Rack

TODO

  • Middleware.
  • (Rails) - (Rack) - (Web Server)

Resources:#

  • Article: https://www.rubyguides.com/2018/09/rack-middleware/
  • Great Video: https://www.youtube.com/watch?v=NJ-ilQMsqMs
Edit this page
Previous
« Gemfile
Next
Rake »
  • Resources:

Docs

  • Style Guide

Social Media

  • Github
  • Stack Overflow
  • Twitter
  • LinkedIn

More

  • Blog
Copyright © 2021 Sandip Subedi. Built with Docusaurus.