Sha256: c255745974ae7182f1d731e81c484023abc27eaafca47cf09544d22617ffaf68
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
#--- # Excerpted from "Agile Web Development with Rails, 2nd Ed." # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information. #--- class InfoController < ApplicationController def who_bought @product = Product.find(params[:id]) @orders = @product.orders respond_to do |format| format.html format.xml end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.0 | sample/depot/app/controllers/info_controller.rb |
amrita2-2.0.1 | sample/depot/app/controllers/info_controller.rb |
amrita2-2.0.2 | sample/depot/app/controllers/info_controller.rb |