Displaying 4 results from an estimated 4 matches for "howtouseurlhelperswithactionmail".
Did you mean:
howtouseurlhelperswithactionmailer
2006 Apr 15
8
I need to send an email when something happens in my model...
...mail from. That just
seems like pretty bad coupling, generating emails from within the
model. Or is that not a problem? On top of that, these emails need
to contain links back to my site...which is a bit of a pain in
ActionMailer, but I found directions on
http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer
however I won''t be able to pass in an instance of the controller if
I''m generating the emails from the model.
Anyway, when a certain method is called on my model, I want to send an
email out to a bunch of users associated with that model, and have
each email contain a link back...
2006 Feb 16
1
runner: url_for with mailers impossible
I created a runner script to send a newsletter. I found this hack where
you pass a controller and specify a helper:
http://wiki.rubyonrails.org/rails/pages/HowtoUseUrlHelpersWithActionMailer
But in a runner script there is no controller to pass. So, it looks like
it''s impossible to use url_for in the mailer template this way.
Another way around the no url_for problem is to pass the generated url
to the mailer, but again there is no controller in runner scripts.
Impossib...
2006 Jan 09
1
testing UrlHelper in ActionMailer
Hi All,
So I found a helpful web page that explained how I could use things like
url_for in my mails:
http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer
However, I can''t test them properly. The problem is that when I create a
controller in my unit tests and pass it into the ActionMailer, it''s not
a real controller, set up as a controller is when it is instantiated via
an http request, so variables inside the controller like @ur...
2006 Jan 11
1
ActionMailing rendered pages
Hi,
I am having problems figuring out how to send
properly html pages attachments which are
some other application''s components rendered pages.
It seems, that when I use something like this:
part :content_type => "text/html",
:body => render_message("optestweek", :week => week,
:profiles => profiles )
I have no more access to methods like