SHARE
TWEET

controller_partner

a guest Nov 13th, 2012 48 Never
  1. def show
  2.     @partner = Partner.find(params[:id])
  3.     @offers = @partner.today_offers
  4.     @product_types = ProductType.find_all_by_partner_id_and_active(@partner.id, true)    
  5.    
  6.       respond_to do |format|
  7.         @title = @partner.company_name
  8.         @menu = true
  9.         @partner_show_back = @partner
  10.        
  11.         format.html # show.html.erb
  12.         format.json { render json: @partner }
  13.       end
  14.   end
RAW Paste Data
Top