Displaying 20 results from an estimated 4000 matches similar to: "Actionmailer sending many emails in same SMTP connection?"
2006 Aug 05
1
TLS support for ActionMailer!
This plugin lets you send mail through SMTP servers (like gmail) that
require a secure connection. All you have to do is install the plugin
via the standard methods, and set the following line somewhere useful
(like environment.rb):
ActionMailer::Base.server_settings[:tls] = true
Plugin URL:
http://svn.kylemaxwell.com/action_mailer_optional_tls/
--
Kyle Maxwell
Chief Technologist
E Factor
2006 May 17
10
HABTM << producing incorrect insert sql ?
Greetings railsers -
I''m trying to add to a collection through HABTM, but the sql
insert is trying to insert a PK rather than letting mysql produce the
auto_increment''ed PK.
## @medication_dose holds a validated, saved model
@medication_dose.medication_frequencies << MedicationFrequency.find
(:all)
The above bails with,
Mysql::Error: #23000Duplicate
2008 Apr 25
6
ActionMailer
Hi all,
I need a help. I have got a user registration form, where the user signs
up and then an activation link is sent to the user email id for
activating his/her account. Now I need to send an another email to the
user, only after he logs in for the first time in my site, then the
second email should be sent. Can anybody give me some suggestion on how
to do it ??
NB: When the user clicks on
2006 Apr 25
5
Rails using Ruby that ships with RHEL 4
Hi,
RHEL 4 ships with Ruby 1.8.1. I take it that won''t work with Rails 1.1.2?
Thanks,
Joe
2006 Jun 24
5
Why is rails using DB objects that don''t exist?
I admit it--I''m newb right now. But only to rails, ruby and friends.
I''m walking through a "recipe" tutorial but have been stuck for hours;
it''s time to ask for help. On Windows I''ve got the latest ruby, rails,
and webrick; I''ve got the Oracle OCI "thing" to talk to our Oracle 10g
database, I''ve got Slick Edit and a
2006 May 06
3
[BUMP] conditional require? conditional action code?
Greetings all.
I have some controller code that uses win32ole (only available on
windows). This code is now solid, and I''d now like to resume
development on (any) other OS(grin).
But alas, the controller bails because the OS specific library can''t
be found.
Can I conditionally specify action code compilation (and a require
''win32ole'') based on OS or
2006 Aug 16
14
Migrations: only one table per migration file?
Hi all
I have a new migration file created that adds some tables and fills one
with some data:
create_table :sound_styles do |t|
t.column :name, :string, :null => false
end
create_table :show_types do |t|
t.column :name, :string, :null => false
end
create_table :countries do |t|
t.column :name, :string, :null => false
end
ActionView::Helpers::FormOptionsHelper::COUNTRIES.each
2006 Aug 18
7
Rewriting URLs - help needed
Hello -
I''m grappling with some tricky URL rewriting with Apache 2 and mod_rewrite,
and could use a hand.
Briefly:
URL for application is: www.servername.com/path/to/app/
There is no Alias directive; the application is in the directory
/www/content/path/to/app/ on the server file system.
The FastCGI dispatcher (dispatch.fcgi) lives at:
/www/fcgi-bin/path/to/app/dispatch.fcgi
Inside
2007 Mar 12
2
utc
I''m having a helluva time getting Date.today.utc to resolve -
"undefined method `utc'' for #<Date: 4908343/2,0,2299161>"
model usage in before_create filter is :
activated_at = Date.today.utc
I''m not stubbing out Date (should I be? [ stub(Date, :utc =>
Date.today) didn''t help any ].
The before filter is working fine within the app, but
2007 Feb 07
11
Running patched rails
Hi,
Does anyone have any tips for running a patched version of rails? I am
currently running rails 1.2.2 and would like to keep up to date with any
future releases. I also want to run with the following patch:
http://dev.rubyonrails.org/ticket/5748
I am unsure how to manage this. Is this something SVN or rake can
handle?
Any tips/pointers would be very much appreciated.
Thanks,
GiantCranes
2006 Jan 03
2
Pdf::Writer ; page numbering, and table wrapping
Hey there,
I know this isn''t a pdf::writer list - If there''s a more appropriate
place for me to ask these questions I''d appreciate being set straight.
I''m having a couple of misunderstandings/isssues first with page numbers
and secondly with auto-wrapping of simple_table.
First
pdf.start_page_numbering(pdf.margin_x_middle,
pdf.absolute_bottom_margin, 9,
2006 Jun 22
11
Help please
Getting this error:
SyntaxError in CompanyController#positionslist
(eval):1:in `compute_type'': compile error
(eval):1: parse error, unexpected tINTEGER
Object::2
I could not find anything out about it (googling) and it''s not the
clearest error message. Not sure if it''s related to an expected data
type but that wouldn''t make sense. The only other thing I can
2006 Jan 02
3
Pdf::Writer and #image
Greetings all - happy new year,
I''m having problems getting Pdf::Writer image insertion.
pdf.image "/path/to/images/logo.jpg"
is firing "JPEG marker not found!"
Originally created the RGB (8 bit) JPEG in photoshop. After the above,
I''ve exported with an alternate tool using (OSX) preview.
This tutorial
2007 Feb 15
1
Has anyone run function tests on ActionMailer?
I am running function tests to see if ActionMailer mails out an email.
I have two development machines, both with rails 1.1.6. On one
machine, the ActionMailer::Base.deliveries array resets itself after
each test. On the other machine, the array keeps accumulating the
emails from the previous function tests and doesn''t clear out the
array after each test.
Both machines have identical
2006 Jan 15
13
Hotlinking an entire row in an HTML table
Hi,
This seems simple but I cant get it to work... I have a table with
4 or 5 columns and 20-30 rows. I''d like to have the ability to click
anywhere in a particular row to fire an action, such as bringing up
a "Details" page for the clicked row. This would eliminate the need
to generate a "Details" link at the end of every row, which is what I
have now and looks
2006 Aug 17
3
Migrations for migrating data across databases - is it possible?
Hi All
I am trying to understand if I can use migrations to migrate data under the
following conditions
1. Across 2 different databases (Oracle/DB2) with same schemas.
2. Across 2 different databases (Oracle/DB2) with different schemas.
I am trying to avoid writing DBI/OCI8 scripts.
Can somone please shed some light if this is even possible?
thanks
-daya
-------------- next part
2006 Jun 24
5
request.xhr? vs. respond_to
Searched around this forum, but didn''t find an answer for this question.
Can you help this newbie understand any overlap and/or difference
between request.xhr? and respond_to?
If request.xhr? is true, should I expect it wants.js below?
respond_to do |wants|
wants.html { redirect_to(person_list_url) }
wants.js
wants.xml { render :xml => @person.to_xml(:include
2006 Jul 04
3
Engine Not Starting
I''ve used login_engine successfully before with webrick, and now using a
provider that uses fcgi. login_engine doesn''t seem to start up, in the
development log file, I get only routing errors for the page requested.
The login_engine unit tests pass fine.
My question is if an engine is not loaded, not in a path, etc, how is
this indicated in rails? None of the log files even
2006 Aug 11
10
OT -- What is with all the fragmented threads recently?
Is it my imagination or has there been a huge increase in the number
of fragmented threads in the last several days? Maybe it''s Gmail
doing something crazy, but I see dozens of top-level conversations
starting with replies (ex. "Re: [Rails] omfg something broke").
Did people collectively forget what the "reply" button looks like, or
is the list software doing
2009 Jun 12
7
Managing Feature Backlogs
What techniques and tools do you use to manage your feature backlogs?
It could be as low tech as a post-it note, TODO file in your Rails
project tree, or as high tech as a web-based collaborative tool.
Thanks,
Mark