Plugin: validate_request

Published on

A very useful plugin by Scott A. Woods. validate_request plugin allows us to check the request method and parameters that are used to call your action. For Example consider an add_to_cart action as: def add_to_cart @product = Product.find(params[:id]) @cart.add_product(@product) end The link to add an item to our cart should like store/add_to_cart/nnn, where nnn is … Continue reading Plugin: validate_request

Plugin: tabnav

Published on

Add tabbed navigation to your Rails application in a easiest way. For more details please visit http://blog.seesaw.it/articles/2006/07/23/the-easiest-way-to-add-tabbed-navigation-to-your-rails-app

An Escalator Puzzle

Published on

Bob takes the underground train to work and uses an escalator at the railway station. If Bob runs up 6 steps of the escalator, then it takes him 52.5 seconds to reach the top of the escalator. If he runs up 14 steps of the escalator, then it takes him only 32.5 seconds to reach … Continue reading An Escalator Puzzle