Displaying 20 results from an estimated 1000 matches similar to: "Action Mailer throwing underscores on template name"
2006 May 05
1
NameError when running exception_notification plugin?
Hi all,
I installed the exception_notification plugin via ''script/plugin
install'', and when configure it and try to run it, I get:
NameError
uninitialized constant ExceptionNotifiable
This error occured while loading the following files:
application.rb
exception_notifiable.rb
In my application.rb, I added this:
include ExceptionNotifiable
And in my development
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like
ActionView cant find my template. same code works as a rake task.
here my worker:
class StatusMailWorker < BackgrounDRb::Rails
repeat 1.minutes # <-- hehe!
def do_work(args)
[...blah...]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
No
2006 Jun 05
1
Action Mailer contact form
I am trying to use Rails and the Action mailer to create a simple contact
form on a website. I am using a table-less model to validate the form
contents, then trying to use the Action Mailer chapter of the "Agile Web Development
with Rails" book as a pattern to develop the send e-mail portion. I am
having trouble getting it working and was hoping someone could point me in the
2006 Mar 22
1
undefined method `respond_to'' when using Exception Notifier Plugin
I''m trying to use the exception notifier plugin and I''m getting this error
message:
NoMethodError (undefined method `respond_to'' for
#<Adm::PeriodController:0xb74c9804>):
/vendor/plugins/exception_notification/lib/exception_notifiable.rb:64:in
`render_500''
/vendor/plugins/exception_notification/lib/exception_notifiable.rb:76:in
2006 May 05
3
exception_notification plugin not sending mails in development on localhost
Hi everyone,
So, I''ve got exception_notification working now, but not in
development mode on localhost. In my ApplicationController, I''ve
added:
local_addresses.clear
Shouldn''t that be enough?
Thank you!
Sean
2006 Oct 05
3
Exception Notifier plugin has stopped working.
Exception Notifier seems to have ceased working for some reason. I
thought perhaps a change in edge rails was to blame, but I rolled back
to 4900 and the problem was still there.
The problem is that it generates an error in the _session.rhtml partial.
It looks as if a method in the PP class is bombing. It says wrong
number of argument (1 for 0), but there is no method on that line with
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
Today I worked on adding email exception notification to some
ancillary background processes for a Rails app.
Since I was already using Jamis'' exception notification plugin to
notify me of errors in controllers for the web app, I figured that the
path of least resistance was to try to figure out how to hook it into
the daemon code.
At first it looked easy. I just needed to
2011 Jun 01
4
missing these required gems: will_paginate
Hi EveryBody,
I hope some one help me.
I am new on ROR so might be problem is silly or Obvious. i had
developed a project and i had use "WILL_PAGINATE" plugin in my app.
It''s working well at localhost.
But when deploying on HEROKU, ALL step is going well but when running
$heroku rake db:migrate
ERROR IS
Missing these required gems:
will_paginate
You''re
2007 Jan 06
6
Exception notifier not working
I installed the exception notifier via:
/script/plugin install -x exception_notification
It resides in the vendor/exception_notification directory (as
advertised). I''ve configured environment.rb with the following:
ExceptionNotifier.exception_recipients = %w(blakemiller-uBzjpPW2m0pBDgjK7y7TUQ@public.gmane.org)
ExceptionNotifier.sender_address = %("Application Error"
2008 Jul 08
7
script/server error
Not sure why I''m getting this error, cause I believe it worked
yesterday before I quit and now it''s giving me this error. The last
thing I did was try and get an ActionMailer thing to work. I searched
through the archives but nothing seemed applicable to my error.
Here''s the error I''m getting:
ruby script/server
=> Booting Mongrel (use
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating
config.action_controller.session_store = :active_record_store in
environment.rb
this is the code in environment.rb
---------------------------------------------------------------------------
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION =
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone,
Like so many other here, I too am new to Rails (and Ruby), and so far
it''s been a great experience. I haven''t been able to get around one
problem though. When trying to use the mailer, I recieve an error like
this:
ActionView::ActionViewError in Tell_friend#send_email
No rhtml, rxml, or delegate template found for send_to_friend
The scenario is this:
A form on
2007 Aug 16
0
Update from RoR 1.1.6 - 1.2.3 Rake fails
I am getting a message when I update my system from rails 1.1.6 to
1.2.3 running rake.
[]# rake test --trace
(in /var/www/matrix.1.7.15)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Expected /var/www/matrix.1.7.15/config/../vendor/plugins/
2006 Nov 07
2
ActionMailer outside of Rails?
Does anyone know of issues using ActionMailer outside of Rails? I''m
already selectively using ActiveRecord, so I thought perhaps I could use
ActionMailer as well. (To solve one of those last minute "And could you
make the app email me if it throws any errors" questions that was never
in the original spec...)
When I built a single file to test with, it worked fine and I
2006 Feb 16
3
rescue_action_in_public question
I''m using the rescue_action_in_public example from the Agile book to
handle errors and email serious ones to me. In my application.rb
controller:
def rescue_action_in_public(exception)
logger.error("rescue_action_in_public executed")
case exception
when ActiveRecord::RecordNotFound, ActionController::RoutingError,
ActionController::UnknownAction
2006 Oct 03
0
changes to the exception_notification plugin
first off, this thing rocks. What a great little addition.
It is missing one use case that I could find, and that is where a 404
occurs because a RoutingError occured at the controller level. If it
happens after the controller has been found (say a view or ID is
wrong), then this works. But if application.rb is not called, then it
goes back to the default rails code instead of through the
2008 Jan 08
0
How do I call the exception_notifier from my own rescue_action_in_public ?
Hi all!
I''ve been using the excellent exception_nofitier (
http://agilewebdevelopment.com/plugins/exception_notifier ) a while
now, but want to change the way it interacts with my application.
I now have my own rescue_action_in_public which takes me to a "Error.
Describe the problem"-page. After filling out some user data the user
can then click on submit. This is where the
2006 Mar 07
17
Handling Erros from AWDWR
I''m getting to the point now where I really need to start trapping the
errors.
So from my AWDWR book, I added the following directly from the book into
application.rb...
def rescue_action_in_public(exception)
case exception
when ActiveRecord::RecordNotFound, ActionController::UnknownAction
render(:file => "#{RAILS_ROOT}/public/404.html",
2010 Aug 05
5
asset_host and ActionMailer
After digging through the rails code to figure out why my asset_host
wasn''t getting applied to emails, I realized that it''s because the
config object in the context of a mailer is config.action_mailer and
not config.action_controller. This means you need to set asset host
separately for emails, as config.action_mailer.asset_host.
Should this be considered a bug? Is it really
2013 Nov 13
2
Cannot receive from specified address Unauthenticated senders not allowed
On trying to run a rake task via crontab, I''m getting the following error:
rake aborted!
550 Cannot receive from specified address <help-+zpghU0kKgY@public.gmane.org>:
Unauthenticated senders not allowed
/mnt/voylla-production/shared/bundle/ruby/1.9.1/gems/mail-2.3.3/lib/mail/network/delivery_methods/smtp.rb:129:in
`block in deliver!''