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:
parent
0e3d279717
commit
609b14c360
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user