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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---