Displaying 20 results from an estimated 8000 matches similar to: "Turning off the layout in ActionMailer?"
2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each
email I send. For example, for my registration email I have a
registration.text.plain.erb file and a registration.text.html.erb file.
I want to use a layout for the html version of my emails. In my mailer
I put:
class AccountsMailer < ActionMailer::Base
layout ''email''
...
end
2008 Oct 28
7
aasm callback order?
Hello!
Sometime ago I ran across a webpage where someone had identified the
full callback sequence for an object lifecycle including AASM with
it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t
find it and searches don''t seem to help.
Does anyone have a reference to a page that shows the callback
sequence with Acts As State Machine (the gem)?
I think
ANNOUNCE: act_as_soft_deletable - new rails plugin for soft deleting / disabling ActiveRecord models
2008 May 15
13
ANNOUNCE: act_as_soft_deletable - new rails plugin for soft deleting / disabling ActiveRecord models
Acts_as_soft_deletable is a rails plugin that provides the ability to
soft delete or disable models.
When models are destroyed, they will be archived so that they can
later be restored easily. Its similar to acts_as_paranoid but uses a
different approach that should make it a little more foolproof.
See the README at the following url for a better description.
github url:
2009 Mar 20
1
Getting a Time Zone abbreviation from the full name?
There''s got to be an easier way...
I am building an event manager and as part of it, the user selects the
time zone of the event from a drop-down list using the
time_zone_select helper. This is stored in the events table as a
string.
Because of legacy data which is stored in UTC, I want to keep the
dates and times in the table as UTC but when I display it, I want to
show the abbreviated
2006 Aug 04
1
Setting Up Actionmailer
Hi,
I am new to ruby on rails and i want to receive emails with actionmailer
on windows .However i couldnt find related documents on the net.Anybody
can help me how to set up Actionmailer on windows.
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Aug 04
5
image_tag + ActionMailer
Hi,
Any idea why image_tag doesn''t work within an email template? I''m trying to
generate the URL for an image and I''m getting the following error.
undefined method `request'' for #<Mailer:0x6a719e0>
I''ve been able to use link_to but no luck with image_tag.
I''ve seen a similar post to this in the list but no one has posted a
response.
2008 Apr 03
3
Overloading and wrapping an association method
Hi all:
For example I have:
class Color < ActiveRecord::Base
belongs_to :ball
end
class Ball < ActiveRecord::Base
has_many :colors
end
What I want to do is to write a method that:
1. takes the result of Ball#colors, which is an array of Color objects
2. do something with the array
3. return the result
but I want to name my method Ball#colors, i.e. I want to overload the
generated
2009 Mar 27
0
ActionMailer multipart: html, plain and attachment?
Has anyone gotten emails to work where you specify the HTML and the
plain text alternatives, but also include an attachment?
Reason I''m asking: I''m sending out event notices, styled as HTML but
with a plain text alternative. I also want to attach the .ics file.
For some reason, I can''t get this to work. If I explicitly put in
"multipart/mixed" (to support the
2008 Apr 11
2
Validating an ActiveRecord object and its has_many :through associations
Considering an object with several has_many :through => associations,
what is the ''best'' way to handle validations?
As an example:
class Student < ActiveRecord::Base
# some attrbutes like
# :name
# :grade
# relationships
has_many :students_assignment, :dependent => :destroy
has_many :assignments, :through => :students_assignment
has_many
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
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 Nov 04
1
ActionMailer Sending Two text/plain Parts
Hello ~
I have a working ActionMailer Action that takes the template to use as
an argument so I have one action that handles multiple emails. The
email sends just fine, and the correct email templates are used, but
ActionMailer is throwing in its own text/plain section in addition to
the one I specify. Does anyone have any ideas on why this might be
occuring, when I am specificially specifying
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
Hi,
I''m having issues with getting a consistent result with the emails I am
sending using Actionmailer.
Problem: Emails that I send with plain text, rich text, and attachments do
not display the same results across GMail, Yahoo, Outlook and Thunderbird.
Scenario:
I am sending an email with text/plain, text/html, and 2 attachments using
the code below, and I''ve specified the
2006 Mar 30
4
ActionMailer e-mails getting tagged as junk in Outlook 2003
Whenever an email is sent via ActionMailer, and the recipient is using
Outlook 2003 (with SP2 installed), the e-mail is getting put in the junk
e-mail folder. Since Outlook doesn''t give a reason it was tagged as
junk, it''s hard to determine what to change.
I''ve compared the message headers of the "junk" mail and a valid email
sent through Outlook, and the
2006 Jun 27
4
Action Mailer - weird rendering issues
Hello,
While sending email notifications from ThoughtNotifier, I am getting weird
exceptions, which sometimes occur on the production machine, but I haven''t
been able to reproduce on my development machine.
There should be no error while rendering
`thought_notifier/share_notification.rhtml''
template, but if for some reason it is rendering
2005 Feb 11
1
adding attachment to ActionMailer
Is it possible to add an attachment and send it with ActionMailer?
2008 Sep 18
8
handling association changes? What's the best practice?
Hello all!
I have a conundrum that I''m _sure_ someone else has already thought of
and solved. How does one best handle the scenario of association
object changes and data integrity?
For example, if I have a standard ecommerce site that sells Products
and people can have Orders and an Order has_many Products... then,
what happens if Product #3 is part of Order #2 but at some point, the
2008 Apr 14
9
scientific notation problem
We''re developing a system that''s used for tracking company IPO data
and we''re running into a few number storage issues. For large numbers,
i.e. numbers greater than 100 million, MySQL insists on storing these
as scientific notation. I don''t really have a problem with that but
when we want to edit these fields using something like:
<% form_for(@company) do
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