Class: Rostra::Base::CommentsController
Instance Method Summary
collapse
#can_participate_in_rostra?, #main_app_login_path, #main_app_signup_path, #rostra_user
Methods included from Config
setup
Instance Method Details
#create ⇒ Object
8
9
10
11
12
|
# File 'app/controllers/rostra/base/comments_controller.rb', line 8
def create
if .save
redirect_to @question
end
end
|
#destroy ⇒ Object
19
20
21
22
|
# File 'app/controllers/rostra/base/comments_controller.rb', line 19
def destroy
.destroy
redirect_to @question
end
|
#update ⇒ Object
14
15
16
17
|
# File 'app/controllers/rostra/base/comments_controller.rb', line 14
def update
.update_attributes(:comment => params[:value])
render :text => .
end
|