search for: render_messag

Displaying 20 results from an estimated 23 matches for "render_messag".

Did you mean: render_message
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
...ions[:recipients]||'''' from options[:from]||'''' cc options[:cc]||"" bcc options[:bcc]||"" content_type "multipart/alternative" part :content_type => "text/plain", :body => render_message("ticket_email.text.plain.haml", :message => msg) part :content_type => "text/html", :body => render_message("ticket_email.text.html.haml", :message => msg) attachment :content_type => f.content_type, :body => contents, :filename => f.ori...
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
...dmine'' (v 0.6) as my major project manager, seems running fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a major error when sending a confirmation email : mailer.rb class Mailer < ActionMailer::Base .... # Renders a message with the corresponding layout def render_message(method_name, body) layout = method_name.match(%r{text\.html\.(rhtml|rxml)}) ? ''layout.text.html.rhtml'' : ''layout.text.plain.rhtml'' body[:content_for_layout] = render(:file => method_name, :body => body) ActionView::Base.new(File.join(template_r...
2006 Nov 04
1
ActionMailer Sending Two text/plain Parts
...? Thx in advance, here is the code: notifier.rb code ------------------ def dynamic_mailer(email_address, subject, template_to_use) @from = "no-reply@nothing.com" @subject = subject @recipients = email_address part :content_type => "text/plain", :body => render_message(template_to_use + ".text.plain.rhtml", :foo => "foo") part :content_type => "text/html", :body => render_message(template_to_use + ".text.html.rhtml", :foo => "foo") end resulting email contains two text/plain sections -----------...
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
...n `new'' ./test/../lib/action_mailer/base.rb:510:in `initialize_template_class_without_helper'' ./test/../lib/action_mailer/helpers.rb:106:in `initialize_template_class'' ./test/../lib/action_mailer/base.rb:502:in `render'' ./test/../lib/action_mailer/base.rb:494:in `render_message'' ./test/../lib/action_mailer/base.rb:442:in `create!'' ./test/../lib/action_mailer/base.rb:403:in `initialize'' ./test/../lib/action_mailer/base.rb:351:in `new'' ./test/../lib/action_mailer/base.rb:351:in `method_missing'' ./test/mail_service_test.rb:369:in...
2009 Nov 04
11
Sending Mails with mutations ä,ü,ö
Hi everyone I am sending mails with rails in German. The Problem is that the German letters ä,ü,ö are arriving correctly at the receiver. When the subject contains the word Für the receiver gets Für Does anybody knows this issue? Thanks in advance. Adam -- Posted via http://www.ruby-forum.com/.
2006 May 17
8
Html Email Problem
Dear Rubyians, I am facing problems to send Html Email scnce one month. I changed the content type is text/html and charecter set "utf-8" I worte the html code in the confirm.heml in the action mailer folder. but mail is going with html code Exapmle: <html border="2"> <tr><td></td></tr></html> code in the confirm .html In the
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
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
...@subject = "Order Email @recipients = order.email @from = ''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org'' @sent_on = Time.now @body["order"] = order part :content_type => "text/plain", :body => render_message("price_text_html", :order => order) end I tried content type text/html first, text/plain also does not work. I can''t use the utf code for ''='', it isn''t understood properly. By the way, 3d is the hex unicode for ''=''. What...
2008 Mar 04
2
Action Mailer throwing underscores on template name
..._view/ base.rb:401:in `find_template_extension_for'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/ base.rb:332:in `pick_template_extension'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/ base.rb:249:in `render_file'' (eval):4:in `render_message'' /usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/action_mailer/ base.rb:424:in `create!'' /usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/action_mailer/ base.rb:385:in `initialize'' /usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/action_mailer/ base.rb...
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
...epresentative, sent_at = Time.now) @subject = message.reply_subject @recipients = message.sender.address @from = message.team.reply_from_address @sent_on = sent_at @content_type = "multipart/alternative" part "text/html" do |p| p.body = render_message("answer_as_html", :message => message, :signature => representative.signature) end part "text/plain" do |p| p.body = render_message("answer_as_plain", :message => message, :signature => representative.signature) p.transfer_encoding =...
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 "url_for" inside of the template optestweek.rhtml. Please, share ome toughts with me on this. Tom
2006 Aug 01
2
actionmailer cant find template in backgroundrb
...r_file'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:272:in `render'' d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.3/lib/action_mailer/base.rb:363:in `render'' d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.3/lib/action_mailer/base.rb:358:in `render_message'' d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.3/lib/action_mailer/base.rb:306:in `create!'' d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.3/lib/action_mailer/base.rb:267:in `initialize'' d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `new'' d:...
2009 Oct 28
2
How to send a html email with attachment
Hi guys: I wanna send a html format email with a attachment. What I do is like: model: def weekly_report address = WeeklyReportEmail.find_all_by_validate(true).collect(&:address).to_sentence(:last_word_connector => '','', :two_words_connector => '','') @recipients = address @from = "Chronos weekly report
2006 Mar 08
4
Sending Documents via ActionMailer
Hi, I''ve been trying to set up to send already generated PDF''s via the ActionMailer class however it dosn''t seem to send the full file. So when I try to load the file after being sent it via email it dosn''t because it is corrupt. When I choose to send HTML instead it sends fine but it dosn''t work with Word Documents either Do I need to do anything
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format. By default my application is using forgot_password_en.rhtml template. I read in the ROR Recipes book "ActionMailer sees these templates, recognizes the pattern in their file names, and automatically sets the MIME type of the message to multipart/alternative and adds
2006 May 25
1
AppMailer and McCray''s theme generator
.../gems/actionpack-1.12.0/lib/action_view/base.rb:267:in `render'' D:/MATech/Prog/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.0/lib/action_mailer/base.rb:363:in `render'' D:/MATech/Prog/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.0/lib/action_mailer/base.rb:358:in `render_message'' D:/MATech/Prog/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.0/lib/action_mailer/base.rb:306:in `create!'' D:/MATech/Prog/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.0/lib/action_mailer/base.rb:267:in `initialize'' D:/MATech/Prog/INSTAN~1/ruby/lib/ruby/s...
2006 Jun 05
1
Action Mailer contact form
...'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:272:in `render'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:363:in `render'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:358:in `render_message'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:306:in `create!'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:267:in `initialize'' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `new'...
2008 Jun 18
2
Trouble with email attachments
I''m running rails 2.0.2. I am trying to send an email using the ActionMailer. The email is delivered when sending with or without an attachment. My problem is that when I send an attachment, the body of the email is blank. I only get an email with an attachment. I''ve tried a couple different ways using the attachment method: attachment :content_type =>
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone, Like so many other here, I too am new to Rails (and Ruby), and so far it''s been a great experience. I haven''t been able to get around one problem though. When trying to use the mailer, I recieve an error like this: ActionView::ActionViewError in Tell_friend#send_email No rhtml, rxml, or delegate template found for send_to_friend The scenario is this: A form on
2010 May 06
0
Problems using exception_notification 2.3.3.0
...ayout?'' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/layout.rb:245:in `pick_layout'' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:566:in `render'' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:553:in `render_message'' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:493:in `create!'' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:452:in `initialize'' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in `new'&...