RailsCasts Pro episodes are now free!

Learn more or hide this

A Nonymous's Profile

GitHub User: cleverlemming

Comments by A Nonymous

Avatar

For Rails 3.2 >=, you can create an app/middleware dir for response_timer.rb and just add

config.middleware.use "ResponseTimer"

to the Rails.application.configure block in config/environments/development.rb

Avatar

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