Class: ContactController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ContactController
- Defined in:
- app/controllers/contact_controller.rb
Overview
Contact and feedback
Instance Method Summary collapse
-
#create_feedback_message ⇒ Object
post /contact/feedback_messages.
-
#feedback ⇒ Object
get /contact/feedback.
-
#index ⇒ Object
get /contact.
Instance Method Details
#create_feedback_message ⇒ Object
post /contact/feedback_messages
16 17 18 19 20 21 22 23 |
# File 'app/controllers/contact_controller.rb', line 16 def @entity = FeedbackMessage.new(creation_parameters) if params[:agree] show_result else save_entity end end |
#feedback ⇒ Object
get /contact/feedback
11 12 13 |
# File 'app/controllers/contact_controller.rb', line 11 def feedback @dynamic_page = DynamicPage['feedback'] end |
#index ⇒ Object
get /contact
6 7 8 |
# File 'app/controllers/contact_controller.rb', line 6 def index @dynamic_page = DynamicPage['contact'] end |