Class: ProfilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ProfilesController
- Defined in:
- app/controllers/profiles_controller.rb
Instance Method Summary collapse
-
#entries ⇒ Object
get /u/:slug/entries.
-
#followees ⇒ Object
get /u/:slug/followees.
-
#show ⇒ Object
get /u/:slug.
Instance Method Details
#entries ⇒ Object
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 |
#followees ⇒ Object
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 |
#show ⇒ Object
get /u/:slug
5 6 |
# File 'app/controllers/profiles_controller.rb', line 5 def show end |