Displaying 6 results from an estimated 6 matches for "adminmail".
Did you mean:
adminemail
2006 Jul 18
7
Observer not working
...kpoint never gets
called)
app/models/user_observer.rb:
class UserObserver < ActiveRecord::Observer
def after_create(user)
breakpoint
setting = get_setting(''sys_notify_enable_user_create'')
if setting? then
AdminMailer.deliver_simple_monitor_alert(''Se ha creado un nuevusuario'',
"Nombre: #{user.name} \nCorreo: #{user.email} \nDetalle:
#{user.detail} ")
end
end
end
UserObserver.instance
config/enviroment.rb:
config.active_record.observe...
2006 Apr 17
0
AcctionMailer templates
Is posible to use helpers in ActionMailer templates???
When I do:
<%= link to ''my link'', :action=>''someaction''%>
in the mail template, I get the following error on the browser:
undefined method `url_for'' for #<AdminMailer:0x8ebdfcc>
Thanks.
2008 Jun 04
8
Accessing Params Hash form Action Mailer Model
I have used Action Mailer to collect data from a form and send it to a
recipient. Rather than hard-code things like the subject, recipients,
and return address into the model, I would like to include that
information in hidden fields in my form thereby causing that
information to be included in the params hash. My question is: How
can I access that information from the params hash in the model?
2007 Jul 19
0
one mongrel with *lots* of close_wait tcp connections
...omain:
8011
FIN_WAIT2
getnameinfo failed
getnameinfo failed
#background loop to set the bad mongrel to debug mode during the
close_wait period
def debug_mongrel_loop
sleep (60) until (`lsof -i -P | grep CLOSE_WAIT | grep mongrel |
wc -l`).to_i > 100
`killall -USR1 mongrel_rails`
AdminMailer.deliver_mongrel_debug_mode_turned_on # optional
email alert
# sleep 2 minutes, and then undo the debug mode.
sleep(120)
`killall -USR1 mongrel_rails`
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Gro...
2011 May 22
6
How to capture correctly a specific exception
I a using delayed_job, and I am raising an exception this way :
config/initializers/custom_exceptions.rb
class RemoteLockerException < StandardError; end
class RemoteLockerDenied < StandardError; end
lib/instruction_request_job.rb
class InstructionRequestJob < Struct.new(:style, :request_id)
def perform
....
> connector =
2003 Dec 01
0
No subject
...FreeBSD Ports
path = /usr/ports
[sources]
comment = Local Sources
path = /usr/local/src
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No
Return-Path: <Nick.Scott@veritect.com>
Delivered-To: samba@lists.samba.org
Received: from ADMINMAIL.corp.veritect (unknown [63.110.76.62]) by
lists.samba.org (Postfix) with ESMTP id 4CB31455F for
<samba@lists.samba.org>; Thu, 6 Sep 2001 13:21:12 -0700 (PDT)
Received: by ADMINMAIL.corp.veritect with Internet Mail Service
(5.5.2653.19) id <SAJXALMB>; Thu, 6 Sep 2001 16:25:21 -040...