-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMS easy does not seem to work with Rails 5.2 #9
Comments
Well, the fix is pretty easy. Rails (I believe) 5.1 removed "render :text". To make sms-easy work with my Rails 5.2, needed to change SMSEasyNotifier as follows (the new code that works with Rails 5.2): class SMSEasyNotifier < ActionMailer::Base Am not sure why format.html is in this code because we are sending plain text in SMS. Anyways, the changes are the render text to render plain and adding the layout => false. |
Where did you put this? |
I was struggling with this too but realized that the way to fix it was by making a PR and updating the code to what @imegory said. Since I'm not sure this project is still maintained, you can use my forked gem to get it to work: |
@chptung I can put out a patch real quick if you want to submit a PR? |
@chptung Any idea when Rails removed the |
Unfortunately, I'm not sure, but @imegory might know. |
Ok, I'm not super worried about it as the older version should still work for folks not on 5.2 yet. Prepping 1.4.0 now.. |
I have upgraded rails from 5.0 to 5.2. It appears that SMS-easy fails because rails is looking for a view that does not exist. I added the view just to test what will happen. And then SMS easy was actually trying to send a file.
Can someone please test on Rails 5.2? If not, please let me know how to contribute to this project. Should I create a PR?
The text was updated successfully, but these errors were encountered: