Class: ContactController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/contact_controller.rb

Overview

Contact and feedback

Instance Method Summary collapse

Instance Method Details

#create_feedback_messageObject

post /contact/feedback_messages



16
17
18
19
20
21
22
23
# File 'app/controllers/contact_controller.rb', line 16

def create_feedback_message
  @entity = FeedbackMessage.new(creation_parameters)
  if params[:agree]
    show_result
  else
    save_entity
  end
end

#feedbackObject

get /contact/feedback



11
12
13
# File 'app/controllers/contact_controller.rb', line 11

def feedback
  @dynamic_page = DynamicPage['feedback']
end

#indexObject

get /contact



6
7
8
# File 'app/controllers/contact_controller.rb', line 6

def index
  @dynamic_page = DynamicPage['contact']
end