Class: PhotoManagerController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- PhotoManagerController
- Includes:
- Viewable
- Defined in:
- app/controllers/photo_manager_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
#index ⇒ Object
7 8 9 10 |
# File 'app/controllers/photo_manager_controller.rb', line 7 def index @albums = current_user.albums.order('id DESC').page(params[:page_albums]) @photos_no_albums = current_user.photos.where('album_id IS NULL').order('id DESC').page(params[:page]) end |