Class: Parlez::Admin::CommentsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/parlez/admin/comments_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



18
19
# File 'app/controllers/parlez/admin/comments_controller.rb', line 18

def destroy
end

#editObject



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

def edit
  @comment = Parlez::Comment.find(params[:id])
rescue ActiveRecord::RecordNotFound
  flash[:error] = 'Comment not found.'

end

#indexObject



4
5
6
# File 'app/controllers/parlez/admin/comments_controller.rb', line 4

def index
  @comments = Parlez::Comment.all
end

#updateObject



15
16
# File 'app/controllers/parlez/admin/comments_controller.rb', line 15

def update
end