updated secret_token.rb for rails 4