generate uploader rails g uploader photo kaminari rails g kaminari:views default # custom rails g kaminari:views default -e erb