Class: Peoplefinder::TokensController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Peoplefinder::TokensController
- Defined in:
- app/controllers/peoplefinder/tokens_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/peoplefinder/tokens_controller.rb', line 6 def create @token = Token.new(token_params) if @token.save TokenMailer.new_token_email(@token).deliver render else render action: :new end end |