Sha256: 38ab8a78a13803f74ba8e985d44530a6f03034d4108bc31ac32774f634f8b024
Contents?: true
Size: 347 Bytes
Versions: 9
Compression:
Stored size: 347 Bytes
Contents
module Homeland::Press::Admin class PostsController < ::Admin::ApplicationController layout '/layouts/admin' def index @posts = Post.includes(:user).order("id desc").page(params[:page]) end def destroy @post = Post.find_by_slug!(params[:id]) @post.destroy redirect_to admin_posts_path end end end
Version data entries
9 entries across 9 versions & 1 rubygems