Class: ProfilesController

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

Instance Method Summary collapse

Instance Method Details

#entriesObject

get /u/:slug/entries



9
10
11
# File 'app/controllers/profiles_controller.rb', line 9

def entries
  @collection = Post.of_type('blog_post').owned_by(@entity).page_for_visitors(current_page)
end

#followeesObject

get /u/:slug/followees



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

def followees
  @filter     = params[:filter] || Hash.new
  @collection = UserLink.filtered(:followee, @filter).with_follower(@entity).page_for_user(current_page)
end

#showObject

get /u/:slug



5
6
# File 'app/controllers/profiles_controller.rb', line 5

def show
end