Displaying 20 results from an estimated 300 matches similar to: "Possible bug in actionmailer"
2006 Jun 16
0
Strange problem with ActionMailer
I have the following code to send out email notifications. The view
can vary for each call to signup_confirmation, so I''m setting
template_root on each call in order to do that. It works for a while,
but after a few days it will start using a value of signup_path that
was used in a previous call. In other words, Notifier.template_root =
signup path does not actually set
2005 Dec 20
1
Sending mail error
hey,
i get this message when i want to send a mail
5.3.3 AUTH not available
c:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
c:/ruby/lib/ruby/1.8/net/smtp.rb:582:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `critical''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in `__send__''
2007 Aug 15
5
Misc notes concerning view_paths
Hi all,
I''ve been playing in the trunk with putting stuff in different dirs
to keep files from a reusable framework separate from the app files.
Here are a few considerations regarding the view_paths setting:
config.view_path is used to set both action_controller.view_paths and
action_mailer.template_root. We get some buggy/unexpected behavior
here because
2008 Mar 12
0
CMS act_as_tree problem and template_root
Hi,
I want use the comatose CMS plug in for creatin one application.
I installed all the things.
When I run this application I got this error.
"template_root".
Please clear my problem. And How can I create one application by using
the comatose. Please send the sample application if available.
Thank you,
srinivas rao.pala
--
Posted via http://www.ruby-forum.com/.
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
Hi There,
I have several ajax elements that require authorization, but for various
reasons, they can''t pass session[original_uri] to the redirect on user
log in. I''m trying to hack in a uri by passing a param to the login
page.
I can see that the param is passing into the login page, but for
whatever reason, no matter what I do, the user is redirected to the
homepage after
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running
fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a
major error when sending a confirmation email :
mailer.rb
class Mailer < ActionMailer::Base
....
# Renders a message with the corresponding layout
def render_message(method_name, body)
layout =
2008 Jan 03
3
Whats the merb equivilant of this?
Hey All
Quick question, what''s the merb equivalent of this:
ActionView::Base.new([template_root], assigns, self)
in merb? Ive found
Merb::Template::Erubis.transform(:file => ''/path/to/file'')
But I''ve no idea if thats the correct thing to be calling? It doesn''t
''feel'' right, so im not sure it is?
Thanks
Tim
2011 Mar 04
1
How to modify the template path for ActionMailer used in a Ruby script ?
I am testing a ruby 1.9.2 script (it''ll be run in a cron task
later...) in which I am trying to use ActionMailer
All my files are in a single folder ''joinus_email
- joinus_email
joinus_email.rb
notifier.rb
- notifications
joinus_email.html.erb
joinus_email.text.erb
running the script joinus_email.rb, (in which I defined the
2006 Aug 12
1
Multiple args
Hi
It seems the following code do not transfer multiple arguments to the
worker instance:
controller:
=======
# recipients = Hash
# mailing = Mailing model instance
session[:job_key] = MiddleMan.new_worker( :class => :mail_queue_worker,
:args => { :recipients
=> recipients, :mailing => mailing },
2006 Jul 14
8
CAS Authentication filter.
Hi
CAS is a centralized authentication service, and the cas_auth filter can
be installed to automatically make your web application authenticate
against a CAS server. The SVN path to the plugin is
http://svn.ki.se/rails/plugins/cas_auth
and a homepage with some information can be found at
http://opensource.ki.se/casauth.html
For use, just install the plugin in your application and set
2008 Mar 01
15
before_filter strange behaviour on update and create
Hi,
I wrote a authentication script and I''m calling it like this in every
class:
class Blah < ApplicationController
before_filter :auth
def auth
req_perm = Permission.find_by_name("Permission Blah")
access = AccessController.new()
if access.is_logged_in(session.session_id)
if
!access.get_current_user(session.session_id).role.permissions.include?
req_perm
redirect_to
2008 Jun 12
0
Double Frame Problem
The only solution I''ve seen to the problem of the nested frame on the
login/install pages (when using iframes rather than fbml), is to use JS to cause
a redirect (c.f.
http://rubyforge.org/pipermail/facebooker-talk/2008-May/000638.html,
http://webjazz.blogspot.com/2008/03/gotchas-of-internal-iframe-facebook.html):
def create_new_facebook_session_and_redirect!
2010 Apr 06
1
captcha in a belongs_to
Hi
I am using simple_captcha. I have two models User and Staff.
Relation ship are
User has_one staff
staff belongs_to user
Now in the staff edit I have to include a captcha. I did like
<% form_for @user, :url => staff_url(@staff), :html => {:method => :put
} do |f|%>
<p>
<%= f.text_field :first_name,:maxlength => 50 %>
</p>
2006 Jun 16
0
rake spec controller test output hideus.
Is there any way to change the output of rake spec fails?
The errors are just totally over the top ugly and not helpful. First
of all the ruby -Ilib line always comes before each test and I find it
distracting. But if an error occurs on something that is not nil it
just gives me the entire contents of that object and that is no small
matter when the object is a HTTP request response.
Here is
2007 May 13
2
ActionMailer outside of Rails?
Has anyone used ActionMailer outside of rails? I have a requirement for
work that will not allow me to do this from within a rails app. I have
successfully sent an email in the following manner:
MyMailer.deliver_clever_email(someArg,''testing!'')
where the second argument is the body of the email, but when I try to
call just:
MyMailer.deliver_clever_email(someAr)
and use a
2006 Aug 07
9
problems with ActionMailer
Hi all,
I''m trying to create a worker to send a mail to all the users in my
db. Right now I''m doing the tests, this is the code in my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
2008 Mar 24
2
render not able to locate template in publisher
Hi guys,
I have a publisher called UserPublisher setup in models directory of
my app. The reason I have it in a model is because its then possible
for me to invoke publisher methods in after_callbacks of my other
models, just the way we do it for ActionMailer.
My problem is that when I try to update a users profile specifying
location of the view template as a paramater to "profile"
2007 Oct 11
2
Login testing ideas
I''ve been going through Pat''s example story and noticed that there was
no checking for a bad login. I assume this is because that would have
made the article bigger and more complicated than it needed to be.
So the question that comes of of this is:
How do folks normally handle the negative case? My plan was to just
use another scenario, but as a new person to BDD/TDD,
2007 Jul 26
6
response.should_not redirect_to
Hey,
May be it is just too deep night over here and I''m missing something
though I got this failure on {{{response.should_not redirect_to}}}:
''QueuesController should allow authenticated user to access ''show''''
FAILED
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Also I''ve found this in
2006 May 17
3
What am I missing?
There''s got to be a simple answer to this...
def logout
reset_session
flash[:notice] = "Logged out"
redirect_to :action => ''index''
end
The flash never shows up, and doesn''t seem to be in the new session.
--Al Evans
--
Posted via http://www.ruby-forum.com/.