1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Fix up method names

This commit is contained in:
Daniel Barber 2015-09-16 21:19:10 +01:00
parent 0e3d279717
commit 609b14c360

View File

@ -25,14 +25,14 @@ class PhotosController < ApplicationController
private
def with_category(category_id)
def for_category(category_id)
@category = Category.find_by_id(category_id)
@photos = @category.photos.enabled.order { taken_at.desc }
.paginate(page: params[:page], per_page: 11)
@page_title = @category.name
end
def alls
def all
@photos = Photo.enabled.order { taken_at.desc }
.paginate(page: params[:page], per_page: 11)
@page_title = 'All Photos'