Learn-ing
Learn-ing

Reputation: 31

Rack Middleware execution railscast

To understand Rack, I was following Railscast video on Rack Middleware and trying out the same thing in my machine. But I'm facing few issues and unable to solve.

Firstly, the Rails::Initializer.run is not in my Rails App (I'm using Rails 6), so i went through their comments in the above mentioned link and other stackoverflow comments and tried moving "ResponseTimer.rb" file to app/middleware and few other things but none of them seems to work.

All I'm getting is error like this,

undefined method `new' for "ResponseTimer":String (NoMethodError)

Did you mean? next

Help me to understand what is happening and what needs to be done. TIA.

Upvotes: 1

Views: 55

Answers (0)

Related Questions