README.rdoc in devise_phone-0.0.1661 vs README.rdoc in devise_phone-0.0.1662

- old
+ new

@@ -25,9 +25,31 @@ rails generate devise_phone MODEL Replace MODEL by the class name you want to add DevisePhone, like User, Admin, etc. This will add the :phone flag to your model's Devise modules. The generator will also create a migration file (if your ORM support them). Continue reading this file to understand exactly what the generator produces and how to use it. +In your secrets.yml, please specify your twilio_sid, twilio_token, and twilio_phone_number: + + development: + secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + twilio_sid: xxxxxxxxxxxxxxxxxxxxxxxxxxxx + twilio_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxx + twilio_phone_number: 12345678 + + test: + secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + twilio_sid: xxxxxxxxxxxxxxxxxxxxxxxxxxxx + twilio_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxx + twilio_phone_number: 12345678 + + # Do not keep production secrets in the repository, + # instead read values from the environment. + production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> + twilio_sid: <%= ENV["TWILIO_SID"] %> + twilio_token: <%= ENV["TWILIO_TOKEN"] %> + twilio_phone_number: <%= ENV["TWILIO_PHONE_NUMBER"] %> + == Configuring views All the views are packaged inside the gem. If you'd like to customize the views, invoke the following generator and it will copy all the views to your application: rails generate devise_phone:views