Generate a random secret key with the best possible method available on the current platform.
Source Code
# File rails_generator/secret_key_generator.rb, line 18 def generate_secret generator = GENERATORS.find do |g| self.class.send("supports_#{g}?") end send("generate_secret_with_#{generator}") end
<code/>and<pre/>for code samples.