cirandas.net

ref: master

app/controllers/public/map_balloon_controller.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class MapBalloonController < PublicController

  helper SearchHelper

  before_filter :load_profile, :only => [:person, :enterprise, :community]

  def product
    @product = Product.find(params[:id])
    render :action => 'product', :layout => false
  end

  def person
    render :action => 'profile', :layout => false
  end

  def enterprise
    render :action => 'profile', :layout => false
  end

  def community
    render :action => 'profile', :layout => false
  end

  protected

  def load_profile
    @profile = Profile.find(params[:id])
  end

end