Class: ExampleNewsletterSignupController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb

Instance Method Summary collapse

Instance Method Details

#registerObject



2
3
# File 'lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb', line 2

def register
end

#submitObject



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_youObject



15
16
# File 'lib/talkable/generators/templates/app/controllers/example_newsletter_signup_controller.rb', line 15

def thank_you
end