Hello,
I have this code, and the redirect_to doesn't seem to work after I call ActionMailer::deliver_new.
def create ... if current_request.save ... group_users.each do |user| #RequestMailer.deliver_new(current_request, user) end #redirect_to(:action => "list") and return else ... end
The code above (when both are uncommented) delivers the email correctly, but doesn't redirect. It just stays at the .../request/create page.
When I comment the deliver_new line, then it redirects correctly. But obviously, no email.
Please help me, is there something trivial that I missed? Thank you. Hendrata