Displaying 20 results from an estimated 500 matches similar to: "problems with ActionMailer"
2005 Mar 10
4
error messages, loops and saves, actionmailer and finaly authentication
Thanks to everyone who responded to my first set of questions. Not only did I
get my questions answered but I improved my code and learned a couple new
things.
I think I prefer the mailing list over IRC... easier to follow :-)
I have some more questions if you don''t mind. Some are Rails related and some
are Ruby related.
1) This is concerning displaying error messages. I am assuming
2008 Jan 30
6
Schedule parser
Hi,
I was trying to schedule a worker to run during the midnight hour
like this:
:schedules:
:collector:
:process_something:
:trigger_args: 30 * 0 * * 2,3,4,5,6
When I try to start backgroundrb, the "collector" worker failed to
start up and I find this in backgroundrb_server.log:
/home/mengkuan/apps/testrailsapp/current/vendor/plugins/backgroundrb/
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database
and I''m hoping someone can help.
MySQL stores the date/time as this:
2005-03-08 17:00:34.0
and according to my Pickaxe book Ruby stores times as "the number of
seconds and microseconds since [...] January 1, 1970". All well and good.
Unfortunately, RoR is converting my date to this:
2007 Mar 29
3
thread pool
Hi,
I am trying to limit the number of worker threads running at the same
time. Adding ":poolsize: 2" to backgroundrb.yml or starting
backgroundrb server like this
script/backgroundrb start -- -s 2
does not seem to help. I can still create more than 2 worker threads
from a rails app.
I tried this on
ubuntu dapper
- ruby 1.8.4
- backgroundrb 0.2.1
as well as
2005 Mar 31
5
Outputting XHTML strict
I''m trying to get a page to validate as XHTML Strict, and I''ve gotten
everything fixed except for one <textarea> that Rails is generating.
<textarea cols="40" id="estcomment_comment" name="estcomment[comment]"
rows="10" wrap="virtual"></textarea>
This tag is being called in my view with
<%=
2005 Mar 02
9
date validation
I''m hoping someone can help me (a Rails newbie) with this. Basically, I
need to verify that a date created with "date_select" is valid *before*
it''s sent off to the database for acceptance (as a valid date) or
rejection (as an invalid date). Given how easy the majority of validation
are in Rails, I''ve got to believe there''s a fairly simple way
2005 Mar 06
8
Tutorial about XMLHttpRequest+Rails
Hi All
I just finished writing up a tutorial relating my experience
developing a system to edit line-items ''in-line'' in my Rails
application using XMLHttpRequest. I thought this might be of interest
to some readers of this list... Check it out at
http://hieraki.goodlad.ca/read/book/1
Thanks!
Dave
--
Dave Goodlad
dgoodlad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
2008 Jan 25
1
worker and sleep
Hi Hermant,
I have seen some earlier messages in the list where you warned people
never to use sleep() in workers. However, currently I have a need for
a worker to issue a command to an external host and then keep
checking that external host for a status change. Other than sleep,
what else can be used to make a worker wait some time (say 1 second)
between checks?
cheers,
mengkuan
2006 Jul 11
1
smpt server
Hi,
i am now in the process of building a newsletter system which will send
out emails to users that have enlisted to a certain group;
everything''s going fine, and i an towards the end of this project...now
the real part of the story kicks in, where i need to check to see if the
thing is working or not. i have been looking over the development.log
file, and i see that the emails
2007 Mar 30
2
keep-alive
Greetings,
I''m reporting on what I found after trying to use mechanize on a site
like www.tellme.com.
With mechanize versions 0.6.5, 0.6.4, 0.6.3, I was able to use
mechanize without any problems on www.tellme.com.
However, when I upgraded to 0.6.6 or 0.6.7, mechanize simply ground
to a halt after a while. I''m not sure where the problem lies, but
after looking at the
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
Hello all,
If I run this script, and observe the output, the results are not there
at all (try to do the same in the browser). Any suggestions?
require ''rubygems''
require ''mechanize''
agent = WWW::Mechanize.new
agent.user_agent_alias = ''Mac Safari''
page =
2007 Apr 20
2
Running script does not return the correct page
Hello all,
I have tried to post this yesterday, but noticed I was actually not
subscribed yet... Well, here we go again:
If I run this script, and observe the output, the results are not there
at all (try to do the same in the browser). Any suggestions?
require ''rubygems''
require ''mechanize''
agent = WWW::Mechanize.new
agent.user_agent_alias =
2006 Aug 15
0
ar_mailer
Rubyforge Project:
http://rubyforge.org/projects/rctools
Documentation:
http://dev.robotcoop.com/Tools/ar_mailer
== About
Even deliviring email to the local machine may take too long when you
have to
send hundreds of messages. ar_mailer allows you to store messages
into the
database for later delivery by a separate process, ar_sendmail.
== Installing ar_mailer
Just install the gem:
2005 May 11
5
Ruby on Rails Presentation to Agile Atlanta Group tonight...
Hi everyone,
We had a really successful meeting tonight in Atlanta. The topic was
an introduction to Ruby on Rails and our attendance was 30 people,
which is over double of what we normally get. (Our attendance has
dropped since moving the venue about 25 miles north of the city.
The majority of the group stayed well past two hours, at which point
we took a break. The entire presentation and
2008 Jan 28
4
Scheduling same worker/method at different times with different args
I need to run the same worker''s method twice per day with different
arguments. Unfortunately, only the second entry in the schedule is firing.
I created an experimental worker to verify this:
Worker:
class ExperimentWorker < BackgrounDRb::MetaWorker
set_worker_name :experiment_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
2008 Jan 16
2
mysterious crash of a particular worker
Hi,
I am using the latest checkout from backgroundrb release 1.0.1. I
have a worker called status_checker that periodically (every minute)
checks the status of certain hosts over the network. It works fine at
the beginning but after a while the worker will mysteriously
disappear and stop working. I have other workers running but they do
not disappear like this worker does.
These are
2005 Mar 10
6
Expiring Cache Fragments and fcgi
First let me say that Rails caching is very very cool. The traffic
(and responsiveness) I''ve saved by added 10 lines of ruby code would
be enourmous, if I actually had traffic... ;)
Sweepers as observers are great, btw. Since every page of my side is
dynamic, once I did some DB optimization I''m caching the content of
the index page which was taking the bulk of the time to load
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that
my users can have multiple roles.
("Admin" role does always have id = 1).
I have added these methods to my application controller.
<code>
helper_method :is_admin?
helper_method :is_user?
def is_admin?
if @session[''user'']
@session[''user''].roles.find(1)
2005 Mar 10
2
NoMethodError in Event_type#create
I am new Ruby on Rails, so excuse me if my question seems pretty obvious.
I am trying to validate uniqueness of a filed:
class EventType < ActiveRecord::Base
belongs_to :sport
validates_uniqueness_of :event_type
end
When I run it, I get this error message:
Showing /event_type/new.rhtml where line #27 raised undefined method
`each'' for nil:NilClass
<select
2005 Oct 13
0
Does ActionMailer support multiple configurations? Can an ActionMailer child class define a custom configuration?
Hello,
I read that the ActionMailer configuration should be set in the
environment.rb file (See http://am.rubyonrails.com/ and page 399 in the PP
Rails Book).
In my case, I have a customer rep admin application that administers
multiple websites. One of the features involves emailing the login info for
new subscribers that that sign up for the websites by mail.
I would like to use the