Class: Jabe::CommentsController
Instance Method Summary
collapse
included, #public_entry_url
Instance Method Details
#create ⇒ Object
7
8
9
10
11
12
13
14
15
|
# File 'app/controllers/jabe/comments_controller.rb', line 7
def create
if .save
.send_notification(request)
redirect_to entry_path(entry), :notice => 'Your comment was submitted.'
else
flash[:error] = 'Unable to submit your comment.'
render 'entries/show'
end
end
|
#destroy ⇒ Object
17
18
19
20
|
# File 'app/controllers/jabe/comments_controller.rb', line 17
def destroy
.destroy
redirect_to entry_path(entry), :notice => 'Comment was deleted.'
end
|