Class: ExampleNewsletterSignupController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ExampleNewsletterSignupController
- Defined in:
- lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb
Instance Method Summary collapse
Instance Method Details
#register ⇒ Object
2 3 |
# File 'lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb', line 2 def register end |
#submit ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb', line 5 def submit Talkable.register_event( email: params[:email], event_number: Digest::MD5.hexdigest(params[:email]), event_category: 'example_newsletter_signup' ) redirect_to end |
#thank_you ⇒ Object
15 16 |
# File 'lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb', line 15 def thank_you end |