Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

controller_partner

By: a guest on Nov 13th, 2012  |  syntax: Ruby  |  size: 0.42 KB  |  views: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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