RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: cleverlemming
For Rails 3.2 >=, you can create an app/middleware dir for response_timer.rb and just add
app/middleware
config.middleware.use "ResponseTimer"
to the Rails.application.configure block in config/environments/development.rb
If you have an issue with assets compiling as I did--no css or javascript (eg. no alert box on destroy) solution is to bump up Rails version to 3.2.14 and run bundle install.
Details are here: http://stackoverflow.com/questions/18005115/why-are-js-files-in-my-rails-asset-pipeline-not-being-compiled
(Interesting to learn how destroy requires Javascript to get a delete request (Started DELETE). )
For Rails 3.2 >=, you can create an
app/middleware
dir for response_timer.rb and just addconfig.middleware.use "ResponseTimer"
to the Rails.application.configure block in config/environments/development.rb
If you have an issue with assets compiling as I did--no css or javascript (eg. no alert box on destroy) solution is to bump up Rails version to 3.2.14 and run bundle install.
Details are here:
http://stackoverflow.com/questions/18005115/why-are-js-files-in-my-rails-asset-pipeline-not-being-compiled
(Interesting to learn how destroy requires Javascript to get a delete request (Started DELETE). )