Class: Integral::ContactController
- Inherits:
-
Object
- Object
- Integral::ContactController
- Defined in:
- app/controllers/integral/contact_controller.rb
Overview
Handles visitor communications
Instance Method Summary collapse
-
#contact ⇒ Object
POST /contact.
-
#newsletter_signup ⇒ Object
POST /newsletter_signup.
Instance Method Details
#contact ⇒ Object
POST /contact
7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/integral/contact_controller.rb', line 7 def contact @enquiry = Enquiry.new(contact_params) if @enquiry.save head :created else head :unprocessable_entity end end |
#newsletter_signup ⇒ Object
POST /newsletter_signup
18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/integral/contact_controller.rb', line 18 def resource = NewsletterSignup.new() if resource.save head :created else head :unprocessable_entity end end |