Modified secret_token.rb to use Michael Hartl's dynamic logic.