Forum: Ruby ActionMailer view overwriting ActionController view?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5e7e68e1cdaea224d93da209afb28e9d?d=identicon&s=25 unknown (Guest)
on 2006-12-29 01:50
(Received via mailing list)
Hi All,

I'm having a bizarre problem.  I have a page that let's you share a
link from the current page with other users.  You can share with other
users of the site (by selecting them from your list of friends) or
arbitrary users by entering e-mail addresses.  In both scenarios the
site sends e-mail to the users you chose to share with... for some
reason, when I send a set of e-mails to offsite users, the view of the
page gets corrupted and the next time I visit the page, the output of
the view associated with the share controller is replaced with the
previous output of the view associated with the mailer.

I've tried adding a breakpoint and doing "render_to_string :template =>
'foo'" (where foo is the view associated with the template) and sure
enough, it returns the (apparently) cached output from the last e-mail
sent.

Has anyone seen anything like this before, and/or does anyone have any
suggestions on where to look next?

Thanks,
-
John
http://www.rubyroll.com/
Ff9e18f0699bf079f1fc91c8d4506438?d=identicon&s=25 James Britt (Guest)
on 2006-12-29 02:18
(Received via mailing list)
lgastako@gmail.com wrote:
> Hi All,
>
Hi.

>
> Has anyone seen anything like this before, and/or does anyone have any
> suggestions on where to look next?
>


Yes.  Try the Rails mailing list.

www.rubyonrails.org

--
James Britt

"I was born not knowing and have had only a little
  time to change that here and there."
  - Richard P. Feynman
This topic is locked and can not be replied to.