Class: ActivitiesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- ActivitiesController
- Defined in:
- app/controllers/activities_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#advertise, #cache_action?, #css_help, #footer_content, #homepage_features, #plaxo, #rss_site_index, #site_index
Methods included from LocalizedApplication
#get_matching_ui_locale, #get_sorted_langs_from_accept_header, #get_valid_lang_from_accept_header, #set_locale
Methods included from AuthenticatedSystem
#login_by_token, #update_last_seen_at
Instance Method Details
#destroy ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/activities_controller.rb', line 18 def destroy @activity = Activity.find(params[:id]) @activity.destroy respond_to do |format| format.html {redirect_to :back and return} format.js end end |
#index ⇒ Object
13 14 15 16 |
# File 'app/controllers/activities_controller.rb', line 13 def index @activities = User.recent_activity(:per_page => 30, :page => params[:page], :limit => 1000) @popular_tags = (30) end |
#network ⇒ Object
9 10 11 |
# File 'app/controllers/activities_controller.rb', line 9 def network @activities = @user.network_activity(:per_page => 15, :page => params[:page]) end |