Class: ProfilesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/profiles_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) index



6
7
8
9
10
# File 'app/controllers/profiles_controller.rb', line 6

def index
  # you can use meta fields from your model instead (e.g. browser_title)
  # by swapping @page for @profile in the line below:
  present(@page)
end

- (Object) show



12
13
14
15
16
17
18
# File 'app/controllers/profiles_controller.rb', line 12

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

  # you can use meta fields from your model instead (e.g. browser_title)
  # by swapping @page for @profile in the line below:
  present(@page)
end