Displaying 6 results from an estimated 6 matches for "adminmailer".
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.observers...
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 Group...
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
network. I did read somewhere on the web (several years ago) of a guy
who managed to boot windows from the net.
With the start of Win 98/ME/ etc.etc it's not posible anymore.
I currently use PXE to install machine from the net using bpbatch that
works great only bpbatch is not really under developnt and the script
language is a bit buggy.
I see only one option to boot windows from the net and