similar to: ActionMailer template issues?

Displaying 20 results from an estimated 5000 matches similar to: "ActionMailer template issues?"

2008 Oct 17
1
ActionMailer template gets nil param from non-nil deliver_
Rails 1.2.6 ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] =Summary: I pass a non-nil parameter to an ActionMailer class''s deliver_* method. The corresponding * instance method for the ActionMailer gets a nil instead. Disaster ensues. Will someone please tell me what I''m doing wrong? =Details: I have an ActionMailer::Base class with the following template
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
2011 Mar 04
1
How to modify the template path for ActionMailer used in a Ruby script ?
I am testing a ruby 1.9.2 script (it''ll be run in a cron task later...) in which I am trying to use ActionMailer All my files are in a single folder ''joinus_email - joinus_email joinus_email.rb notifier.rb - notifications joinus_email.html.erb joinus_email.text.erb running the script joinus_email.rb, (in which I defined the
2006 Jun 01
2
using ActionMailer with template files retrieved from sql database table instead of on disk files
I''m trying to set up a system which allows users to create and modify emails to send out to clients. I''ve got ActionMailer set up to send from a template file stored on the file system, but I''d like to be able to move this into the database. Does anyone know how to get ActionMailer to read the contents of the email from a database table rather than the on-disk template
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like ActionView cant find my template. same code works as a rake task. here my worker: class StatusMailWorker < BackgrounDRb::Rails repeat 1.minutes # <-- hehe! def do_work(args) [...blah...] NotificationMailer.create_daily_report(users, rep, items) end end end its throwing the following error: No
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 &
2006 Feb 02
1
actionmailer - No rhtml, rxml, or delegate template
I''m getting this error when I try to send an email. No rhtml, rxml, or delegate template found for signup_thanks But I do have signup_thanks.rhtml in app/view/notifier This is in the notifier model. class Notifier < ActionMailer::Base def signup_thanks(sent_at = Time.now) @subject = "the subject works!" @body["first_name"] = "first name"
2006 Jan 29
1
Rendering partials with ActionMailer
Can ActionMailer render partials (like .sigs, for example)? When I try to render :partial, I get an error: undefined method `controller_path'' for SomeNotify:Class I also tried putting the partial within /shared, but it likes that even less -- it can''t seem to find the template. Jake -- Posted via http://www.ruby-forum.com/.
2006 Aug 09
3
HABTM and getting to arrays from either direction
I didn''t find exactly an answer on this one, so I''d like to get a clarification from folks who live & breathe HABTM. class foo has_and_belongs_to_many :bars end class bar has_and_belongs_to_many :foos end (and yes, I have a bars_foos table in my db) def test_habtm bar = Bar.new foo = Foo.new foo.bars<<bar assert !foo.bars.empty? assert
2010 Jan 25
1
ActionMailer does not find templates in production mode
Hello everyone, I am currently struggling with the following issue that only seems to appear in my production environment: When attempting to send a mail from an ActionMailer the template location algorithm does not seem to pick up the corresponding template: ActionView::MissingTemplate (Missing template event_mailer/approval_requested_notification.erb in view path app/views):
2007 Aug 10
1
ActionMailer and Dreamhost
Hello, I am running my RoR app on localhost and am trying to implement ActionMailer. In my environment.rb config file, I am pointing to my smtp server on Dreamhost: ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.server_settings = { :address => ''mail.domain.info'', :port => 25, :domain =>
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just straight HTML, I only used the form helpers for the form tag as so: -- <%= form_tag({:action => :send_request}, {:method=>:post, :name=>''childsplay''})%> -- In my page controller I have this: -- def send_request email = InfoMailer::deliver_sendrequest(params) end --- in my action mailer class I
2006 Feb 26
0
ActionMailer view templates don''t pick up application_helper.rb?
It seems that helper methods defined in application_helper.rb aren''t available in ActionMailer views. Is that intentional? -- - Adam ** Expert Technical Project and Business Management **** System Performance Analysis and Architecture ****** [ http://www.everylastounce.com ] [ http://www.aquick.org/blog ] ............ Blog [ http://www.adamfields.com/resume.html ].. Experience [
2006 Aug 15
0
ActionMailer
Im trying to send an email see the code below: Model: order_mailer.rb class OrderMailer < ActionMailer::Base def send_an_email() @recipients = "myadress@isp.co.uk" @from = "myaddress@isp.co.uk" @subject = "Ruby Test" @body = "The Body" end end View: send_an_email.rhtml <p>Email was sent!.</p> Controller: Admin.rb def
2006 Nov 29
1
actionmailer on Debian Etch
Hello, I have two debian etch systems, both have rails. I have installed them with apt, not gems. No problems so far. Now I have tried to use the actionmailer. The results: mage@miranda:~/temp$ rails mailer create create app/controllers [....] create log/test.log mage@miranda:~/temp$ cd mailer mage@miranda:~/temp/mailer$ script/generate mailer Letter test send
2006 Aug 10
2
check_box form helper questions/issues
I''m using Rails 1.1.x and it looks like the check_box form helper expects me to provide and object and method so it can determine if the checkbox should be checked or not. I''m having a couple of issues with this. note: I''m using UserEngine and adding a HABTM so that: class User < ActiveRecord::Base has_and_belongs_to_many :foos end class foo <
2006 Jul 13
1
RailsCron usage question
I''m yet another person looking to do some background Rails processing. >From post & the wiki, it looks like I should be using RailsCron. So I''m about to start playing. In parallel, I''d like to get some opinions re: database access. I have a table that I''d like to re-fresh periodically in the background. Is it safe, using RailsCron, to be accessing
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 =>
2005 Mar 06
2
Using url_for in ActionMailer templates
Hi All I am just adding some basic e-mail notices to my Rails app using ActionMailer, and have one small issue. I want to provide a confirmation URL to users who sign up for an account. I can obviously just hardcode the URL and append the confirmation code to it, but I''d much rather be able to use something like: url_for(:controller => ''authentication'', :action
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'',