Class: Admin::PostsController

Inherits:
CrudController
  • Object
show all
Defined in:
app/controllers/admin/posts_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject


9
10
11
12
13
# File 'app/controllers/admin/posts_controller.rb', line 9

def edit
  @post = Post.find(params[:id])

  respond_with(@post)
end

#showObject


15
16
17
18
19
# File 'app/controllers/admin/posts_controller.rb', line 15

def show
  @post = Post.find(params[:id])

  respond_with(@post)
end