Plugin: validate_request
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