README.rdoc in devise_phone-0.0.1667 vs README.rdoc in devise_phone-0.1.0

- old
+ new

@@ -25,17 +25,23 @@ 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 config/environments, please specify your twilio_sid, twilio_token, and twilio_phone_number, and twilio_message_body (use #{verification_code} to include the phone verification code of the user) : +In your config/environments, please specify your twilio_sid, twilio_token, and twilio_phone_number: - dconfig.twilio = { + config.twilio = { sid: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', phone_number: '123455678', - message_body: "Hi! This is from company u asked for. Your verification code is #{verification_code}" } + +To specify the message body, in devise.en.yml add: + +en: + devise: + phone: + message_body: "Hi! This is Company Name. Your verification code is %{verification_code}." == 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: