Displaying 15 results from an estimated 15 matches for "usernotify".
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
Any ideas what would be causing this?
NoMethodError: undefined method `password_reset_instructions'' for
UserNotifier:Class
from /Library/Ruby/Gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/
base.rb:400:in `method_missing''
*** app/models/user_notifier.rb
class UserNotifier < ActionMailer::Base
def signup_notification(user)
setup user
subject ''Your new
2007 Aug 30
8
experimental rails story adapter in trunk
For those of you interested in getting a jump on learning about and
using the new Story Runner in a Rails app, I''ve added an experimental
Rails-Story adapter to trunk.
You can see how to use it here:
http://pastie.caboo.se/92320
This is PURELY EXPERIMENTAL, however it actually works and will likely
not change much in the way that it does work.
Happy hacking!
David
2009 Nov 30
0
Problem with ActionMailer in controller specs - works in model specs
I am having a problem with my controller tests that include
ActionMailer. The tests work for the model test, e.g. I have a
UserNotifier model that sends account activation e-mails and the
spec''s work fine. When I run the UsersController spec''s that test
some of the same functionality (e.g. uses the UserNotifier model), I
get:
ArgumentError in ... wrong number of arguments (0
2013 Jun 06
1
Introducing MailJack: autogenerate querystring parameters that are appended to links in your emails
Hey All,
I just wrote a nifty gem and wanted to share(its one of my first).
Wondering if anyone would be so kind as to tell me what they think and/or
code review it.
MailJack - its like LoJack but for the links in your emails. The problem
this solves is the ability to track click throughs in emails.
https://github.com/synth/mail_jack
Basically, you specify what mailers you want to track
2005 Aug 26
2
Salted Login Hash Woes
...User.transaction(@user) do
@user.new_password = true
if @user.save
key = @user.generate_security_token
url = url_for(:action => ''welcome'')
url += "?user[id]=#{@user.id}&key=#{key}"
UserNotify.deliver_signup(@user,
@params[''user''][''password''], url)
flash[''notice''] = l(:user_signup_succeeded)
redirect_to :action => ''login''
end
end
rescue
flash.now[''...
2006 Nov 19
1
ActiveRecord save-update not performed ?
I try to understand the following issue :
- when creating a new User record, I use an UserObserver to trap the
before_save call back and send an email
def after_create(user)
UserNotifier.deliver_signup_notification(user)
end
- Once created a user can ask for a password reset, which is also
trapped by the UserOberver
def after_save(user)
UserNotifier.deliver_reset_password(user) if
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
...e_security_token
url = url_for(:action => ''home'', :user_id => @user.id, :key =>
key)
flash[:notice] = ''Signup successful!''
if LoginEngine.config(:use_email_notification) and
LoginEngine.config(:confirm_account)
UserNotify.deliver_signup(@user, params[:user][:password],
url)
flash[:notice] << '' Please check your registered email
account to verify your account registration and continue with the
login.''
else
flash[:notice] << '' Please log in....
2007 Feb 16
4
Auto detect URL for ActionMailer?
Hi,
how can I call the url in an actionMailer definition - so that it
automatically detects what the rails application server is and puts it
in the url that is mailed to the client? (I don''t want to have to change
it every time the hostname is changed - I''d like the application to auto
detect what the host is - whether it''s localhost:3000 or my own
website...
example:
2007 Feb 14
1
Scheduling in backgroundrb not working
...39;')
end
def send_emails_to_people
@d_evals = User.find(:all,:conditions => [''id <= ?'',3]
for lop in @d_users
logger.info(''I am in loop'')
@user = User.find(:first, :conditions => [ ''id = ?'',lop.id])
UserNotify.deliver_people_emails(@user)
end
end
end
MailmanWorker.register
-------------------------------------Controller code-----
class TestffController < ApplicationController
def a_pop
MiddleMan.new_worker(:class => :mailman_worker, :job_key =>
:foo_name)
worker = Midd...
2009 Jan 18
3
ActionMailer and url_for in helper methods
Hi,
I was wondering how to get url_for to work inside ActionMailer. I did
research on the web but I can''t seem to find something that fits what I
need.
In my application, each user can specify their custom domain to access
their. I have an ActionMailer that sends them notifications of changes
that occur. In there, I have a breadcrumbs helper method, which
generages something like:
2006 Apr 29
10
A Good Tutorial on Params and Variables
I have found various posts about instance variables, session variables
and parameters (each of which seems to use differnet syntax and have
different view on the "best practice") I would like to find a single,
reliable source that provides a good overview on all of it.
Specifically, I would like to learn how to pass parameters between
controllers and how to set session variables so
2007 Jan 18
1
spec''ing models with observers that send mail
I''m spec''ing a model with an observer that sends mail. Mailers behave
similarly to controllers, so to make the whole thing work, I believe
something like integrate_views has to be available. Has anyone dealt
with observers and ActionMailer?
Thanks
2006 Aug 06
0
how to diagnose ActionMailer issues
I''m a bit new on RoR so I might have missed something.
I''ve just installed SaltedHashLogin and even though it works with no
issues, it sends no emails. But I don''t get any errors at all!
I''ve tried the method via the console:
UserNotify.deliver_signup(User.new,"","") and I get the following:
#<TMail::Mail port=#<TMail::StringPort:id=0x11f8f20>
bodyport=#<TMail::StringPort:id=0x11f6be4>>
Are there any logs for RoR or ActionMailer?
--
Posted via http://www.ruby-forum.com/.
2005 Mar 06
2
Using url_for in ActionMailer templates
Hi All
I am just adding some basic e-mail notices to my Rails app using
ActionMailer, and have one small issue. I want to provide a
confirmation URL to users who sign up for an account. I can obviously
just hardcode the URL and append the confirmation code to it, but I''d
much rather be able to use something like:
url_for(:controller => ''authentication'', :action
2009 Aug 06
18
Best Practices Question
Should models call action mailers, or should those calls always
originate from controllers? For example, should user.forgot_password
send the email, or should the user_controller.forgot_password?
Just looking for some opinions...
Thanks,
Tom