问题描述:

Anyone come across this error in mailboxer? Was working fine for the past weeks, but suddenly I get this error each time I send a message. Has anyone had this and how did you handle it? I'm working on Rails 4

Error: unknown attribute 'delivery_method' for Mailboxer::Receipt.

网友答案:

i solved this error in my code by adding an exception handling in my code. if anyone encounters this error :unknown attribute 'delivery_method' for Mailboxer::Receipt. while using mailboxer in rails 4.2.2, you can try this:

add an exception handling code in the part you send_message

       begin
        conversation = current_user.send_message(recipients, body,subject).conversation

        rescue  

        end
相关阅读:
Top