Class: Decidim::ProfilesController

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

Overview

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

Instance Method Summary collapse

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#badgesObject



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

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

#followersObject



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

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

#followingObject



15
16
17
18
# File 'app/controllers/decidim/profiles_controller.rb', line 15

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

#showObject



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