Virtual SMS
A rails plugin that provides a virtual SMS box and SMS Carrier delivery method. You can send SMS to this virtual SMS box instead of real SMS service in development environment, and you can preview the SMSes in this virtual SMS box in web page.
Installation
Add this line to your application's Gemfile:
gem 'virtual_sms', group: :development
Make sure you have:
gem 'jquery-rails'
And then execute:
bundle
Route
Add virtual SMS box route in your config/route.rb
mount VirtualSms::Engine => "/virtual_sms" if Rails.env.development?
Delivery Method
Set up delivery method of action mailer in your config/environments/developmnet.rb
config.sms_carrier.delivery_method = :virtual
Usage
Now, you can go to http://localhost:3000/virtual_sms and check the SMSes!
License
The gem is available as open source under the terms of the MIT License.
Contact
The project's website is located at https://github.com/emn178/virtual_sms
Author: emn178@gmail.com