Class: Parlez::Admin::CommentsController
- Inherits:
-
BaseController
- Object
- BaseController
- Parlez::Admin::CommentsController
- Defined in:
- app/controllers/parlez/admin/comments_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
18 19 |
# File 'app/controllers/parlez/admin/comments_controller.rb', line 18 def destroy end |
#edit ⇒ Object
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 |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/parlez/admin/comments_controller.rb', line 4 def index @comments = Parlez::Comment.all end |
#update ⇒ Object
15 16 |
# File 'app/controllers/parlez/admin/comments_controller.rb', line 15 def update end |