Class: Decidim::ProfilesController

Inherits:
ApplicationController
  • Object
show all
Includes:
Flaggable, HasProfileBreadcrumb
Defined in:
app/controllers/decidim/profiles_controller.rb

Overview

The controller to handle the user's public profile page.

i18n-tasks-use t('decidim.profiles.show.badges')

Instance Method Summary collapse

Instance Method Details

#activityObject



41
42
43
44
45
# File 'app/controllers/decidim/profiles_controller.rb', line 41

def activity
  @content_cell = "decidim/user_activity"
  @title_key = "activity"
  render :show
end

#badgesObject



35
36
37
38
39
# File 'app/controllers/decidim/profiles_controller.rb', line 35

def badges
  @content_cell = "decidim/badges"
  @title_key = "badges"
  render :show
end

#followersObject



29
30
31
32
33
# File 'app/controllers/decidim/profiles_controller.rb', line 29

def followers
  @content_cell = "decidim/followers"
  @title_key = "followers"
  render :show
end

#followingObject



23
24
25
26
27
# File 'app/controllers/decidim/profiles_controller.rb', line 23

def following
  @content_cell = "decidim/following"
  @title_key = "following"
  render :show
end

#showObject



19
20
21
# File 'app/controllers/decidim/profiles_controller.rb', line 19

def show
  redirect_to profile_activity_path(nickname: params[:nickname].downcase)
end