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.
Add this line to your application's Gemfile:
gem 'virtual_sms', group: :development
Make sure you have:
gem 'jquery-rails'
And then execute:
bundle
Add virtual SMS box route in your config/route.rb
mount VirtualSms::Engine => "/virtual_sms" if Rails.env.development?
Set up delivery method of action mailer in your config/environments/developmnet.rb
config.sms_carrier.delivery_method = :virtual
Now, you can go to http://localhost:3000/virtual_sms and check the SMSes!
The gem is available as open source under the terms of the MIT License.
The project's website is located at https://github.com/emn178/virtual_sms
Author: emn178@gmail.com