Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Rails 3/Devise how to trigger the forgotten password from a model method
  2. def send_invitation
  3.      raise "Tell devise to send email"
  4. end
  5.        
  6. def send_invitation
  7.    DeviseMailer.forgotten_password.deliver
  8. end