Displaying 20 results from an estimated 6000 matches similar to: "Rendering partials with ActionMailer"
2006 Mar 22
3
Rendering partials in ActionMailer?
Hello,
Is anyone out there rendering partials successfully in ActionMailer
templates?
I am having trouble with this, and wasn''t sure if it was my
configuration or something with a version of Rails I''m running.
We''ve got over 15 mailer templates, all working like a charm.
But we have a piece of shared code, that we''d really like to not have to
copy &
2005 Nov 17
7
render :partial in mail template
Hi,
Is it possible to render a partial template from within a mail template?
I get the following error
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #8):
5:
6: <%= @url %>
7:
8: <%= render_partial ''sig_admin'' %>
Jeroen
2007 Jan 11
0
Including partials in ActionMailer template files?
I have class called:
class Notifier < ActionMailer::Base
Then in my view for that class I have an rhtml file that holds the html
for the email. I am trying to do
<%= render :partial => "header" %>
and I''m getting:
ActionView::TemplateError (undefined method `controller_path'' for
Notifier:Class) on line #1 of
2008 Mar 24
2
render not able to locate template in publisher
Hi guys,
I have a publisher called UserPublisher setup in models directory of
my app. The reason I have it in a model is because its then possible
for me to invoke publisher methods in after_callbacks of my other
models, just the way we do it for ActionMailer.
My problem is that when I try to update a users profile specifying
location of the view template as a paramater to "profile"
2006 Sep 13
2
stale spec runner?
I''ve been working with the RSpec on Rails plugin. Great job guys!
The Rails spec runner (server) definitely speeds things up nicely.
But I''m having some trouble keeping it functional. When I start the
server, the first spec execution runs fine. Every following
execution fails though. Each spec complains about the
''controller_path'' missing from my
2006 Jan 20
10
Generating a long, unique "ticket" number.
Hello --
I would like to setup a system where a user can generate a "ticket".
This ticket will be stored indefinitely. The ticket will be sent to
someone who does not have an account on the system and therefore, I
would like to ensure some level of security in that ticket number.
Basically, the other user would receive an email like:
---
Please click on the link below to view this
2006 Mar 22
9
render partial from withit mail template
Hi,
I''m trying to include a partial in an email template but it throws me this:
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #12):
11:
12: <%= render :partial => ''footer'' %>
I guess email views are a little different from normal ones as they
don''t seem to have a access to a proper controller (?)
2006 Jan 14
1
controller_path says undefined local ....
undefined local variable or method `controller_path''
Do I need to install anything explicit?
For the nosies, I''m looking for (building) a breadcrumb routine (as page
independant/DRY-less as possible). Like "mods > crm > customer > add contact"
Regards,
Gerard
--
"Who cares if it doesn''t do anything? It was made with our new
2005 Nov 23
0
Strange error additions in generated HTML
I have a complex view, that renders a couple of partials
sometimes (and not reproducable) I get additional "output" like
follows sprinkled in the generated HTML:
�./app/helpers/application_helper.rb:3: warning: method redefined;
discarding old tr_stat
./vendor/rails/actionpack/lib/action_controller/base.rb:315: warning:
instance variable @controller_path not initialized
2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they
value with --option_name I get only logical true instead of string
...
default_options :option_name => "Some string"
...
def add_options!(opt)
opt.separator ''''
opt.separator ''Options:''
opt.on("--option_name","Some Text") { |v| options[:option_name] = v
2006 Mar 05
5
DreamHost and ActionMailer
I''m getting ready to sign up with DreamHost, but my application is
missing the ActionMailer features.
First, can anyone provide some real code to send an email upon comment
submission?
Second, is it easy to setup ActionMailer on a DreamHost server?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 09
3
Can''t update actionmailer gem?
Trying to update actionmailer gem, and it''s complaining about the
version of actionpack not being correct.
C:\eclipse\workspace>gem update actionmailer
Updating installed gems...
Attempting remote update of actionmailer
Install required dependency actionpack? [Yn] Y
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find actionpack (= 1.12.4) in the repository
2006 Jan 24
9
ActionMailer: Mail isn''t delivered
Hi all
I used the search for this, but I got an Application Error, so sorry for
the newbie question.
I have tried to send an e-mail using ActionMailer. I have to following
config (environment.rb):
ActionMailer::Base.server_settings = {
:address => "mail.psyguide.org",
:port => 25,
:domain => "mail.psyguide.org",
#:authentication => :login,
#:user_name
2006 Mar 14
1
ActionMailer Error - Please Help!
I''m trying to send an email to myself when someone comments on my site.
Here''s my code, if you don''t mind, could you tell me if you see
something wrong?
#environment.rb
# Include your application configuration below
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:domain =>
2006 Mar 14
2
ActionMailer not working correctly
Anyone know why this wouldn''t work? I''m using acts_as_authenticated for
my login, and the mail is not getting sent. I''m using dreamhost. Here''s
my settings:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:port => 25,
:domain => ''mydomain.com'',
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail.
You may know me better as the maintainer of TMail.
However, TMail has been a bit difficult to get working with Ruby 1.9,
so in the light of that, I sat down over the past few months and wrote
myself an all encompasing mail gem. Mail passes all of its hundreds
of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads
every email in the TMail test suite
2006 Sep 09
2
actionmailer HELP
Hi,
I want to receive emails with actionmailer.And I try to do this example:
http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer
I am working on windows and I couldn''t set up Actionmailer for windows.
How can I configure actionmailer for windows? I am glad,if anybody can
help me
Regards...
--
Posted via http://www.ruby-forum.com/.
2006 Oct 31
3
ActionMailer how to check mail sent
OS X 10.4.8
I am sending an email via Actionmailer
settings are written correctly in environment.rb
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.raise_delivery_errors = :true
ActionMailer::Base.perform_deliveries = :true
ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:port => 25,
2007 May 13
2
ActionMailer outside of Rails?
Has anyone used ActionMailer outside of rails? I have a requirement for
work that will not allow me to do this from within a rails app. I have
successfully sent an email in the following manner:
MyMailer.deliver_clever_email(someArg,''testing!'')
where the second argument is the body of the email, but when I try to
call just:
MyMailer.deliver_clever_email(someAr)
and use a
2005 Mar 11
4
actionmailer settings
A couple questions:
1) How does rails no if you are in your test, dev or production
environment?
2) Does anyone have an actionMailer server settings that will work on
your standard local machine? I will use the one provided for my
textdrive account but for testing on my machine I am getting connection
refused.
Thanks.
Your Friend,
Jonathan Kopanas
http://www.kopanas.com