similar to: Template being ignored when attaching pdf in e-mail

Displaying 10 results from an estimated 10 matches similar to: "Template being ignored when attaching pdf in e-mail"

2008 Oct 26
2
use Prawn to generate pdf
Hello: when i use Prawn to generate pdf file for download, i got a blank pdf file, can someone tell me why? require ''prawn'' class DownloadController < ApplicationController def download_pdf send_data(generate_pdf, :filename => ''test.pdf'', :type => ''application/pdf'') end private def generate_pdf
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
I am trying to create a form for processing credit cards. For the credit card expiration date, I would like to leave the day field out of the form for obvious reasons. However, the following code is producing an error for me. Any ideas? Thanks! <p><label for="email">Expiration</label><br/> <input type="hidden" id="user_card_expiration_3i"
2012 Mar 22
1
Rspec not loading fixtures
I am taking over a code base and am trying to run the tests. I am somewhat new to RSpec so this might be a trivial problem. Basically I can tell that the fixtures are not getting loaded. All 100 tests fail with a similar error. But I don''t know why. Below is the code, with my narrative with *** before it... Can you see anything or give me a clue where to look. So far I am coming up
2009 Apr 09
1
Mailing error in Rails 2.3.2
Hi, My mails were working with the earlier version of rails ie. Rails 2.0.2. But recently when i upgraded my environment to 2.3.2 the mails stopped working and gave "Error: End of file reached". But if i send mails independent of my rails app the mailing code works fine. My Environment: Windows Xp Ruby 1.8.7 actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource
2011 Feb 15
0
How to set content_transfer_encoding to something other than quoted-printable?
Hi all, How do I set the content_transfer_encoding for mail with actionmailer to something other than quoted-printable? It''s a setting with TMail which action mailer relies on in rails 2.3.*. I am trying to set it to utf8 I have tried: - mail = TMail::Mail.new; mail.transfer_encoding = "utf8"; - setting the @header["Content-Transfer-Encoding"] in the
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
How do you do this? Tried all the examples on the wiki, and unfortunately the trac is not accessible right now to check the trouble tickets. No matter what I do the mime structure seems to be incorrect. It seems that adding an attachment to a html+plaintext message is not possible using the standard methods. I have seen some old posting on the mailing list about overriding the deliver method
2006 Mar 01
0
Possible bug in ActionMailer (with patch)
I wanted to write the following code, with emphasis on adding my own headers to the second part with the :headers parameter. class ArticleMailer < ActionMailer::Base def test_message subject ''This is a test'' recipients ''elan@bluemandrill.com'' from ''Exemplary Products <info@example.com>''
2008 Apr 09
0
PDF::Writer add_text_wrap
Wondering if anyone else had problems with the add_text_wrap of the pdf-writer gem? I have something that looks like the following below, but it does not wrap down to the next line, it just either runs off the page or stops before the page, depending on the width of the text_wrap. Anyone have any ideas? @additional_items = @user.additional_items pdf.add_text_wrap(310, 605, 300, @additional_items,
2007 Jun 25
0
Outlook calendar roadblock
Hello All, Summary Problem: I need to automatically import a VCS file into our company''s public outlook calendar. The vcs file is being generated through a user-form in my ruby on rails application. Details of my problem: I am developing a program for the company I work for, it would only be used in house. It is basically a front-end for the company''s scheduling software.
2008 Mar 13
2
Verify E-mail Delivery
Are there any services or ways of verifying that an e-mail is reaching its recipient? I am using ActiveMailer and it works well but I may need to start ensuring that e-mails are delivered to the address specified. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this