Class: Decidim::ProfilesController
Overview
The controller to handle the user’s public profile page.
Instance Method Summary
collapse
#disable_http_caching
enhance_controller, extended, included
Instance Method Details
#badges ⇒ Object
25
26
27
28
|
# File 'app/controllers/decidim/profiles_controller.rb', line 25
def badges
@content_cell = "decidim/badges"
render :show
end
|
#followers ⇒ Object
20
21
22
23
|
# File 'app/controllers/decidim/profiles_controller.rb', line 20
def followers
@content_cell = "decidim/followers"
render :show
end
|
#following ⇒ Object
15
16
17
18
|
# File 'app/controllers/decidim/profiles_controller.rb', line 15
def following
@content_cell = "decidim/following"
render :show
end
|
#show ⇒ Object
10
11
12
13
|
# File 'app/controllers/decidim/profiles_controller.rb', line 10
def show
return redirect_to notifications_path if current_user == user
@content_cell = "decidim/following"
end
|