search for: usernotifier

Displaying 15 results from an estimated 15 matches for "usernotifier".

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 account'' bod...
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 for 1) .../lib/action_mailer/base.rb...
2013 Jun 06
1
Introducing MailJack: autogenerate querystring parameters that are appended to links in your emails
...is optional and lets you specify a parameter where MailJack will stash a base64 encoded string of your parameters. In the trackable block, you can specify any number of parameters that you want to appear in the appended query string. So here''s an example. For the following mailer: UserNotifier#welcome_email, all links in that email will have the following appended ?campaign=welcome_email&campaign_group=UserNotifier Actually, since we have the encode_to parameter specified, it would actually appear as: ?utm_source=Y2FtcGFpZ249d2VsY29tZV9lbWFpbCZjYW1wYWlnbl9ncm91cD1Vc2VyTm90aWZpZ...
2005 Aug 26
2
Salted Login Hash Woes
I had the Salted Login Hash Generator working at one point and then it just stoped working. It was around the time that I changed hosts and I think that it just might not be able to connect to the new server. I have tried everything though and it just doesn''t seem to work out. I''m now thinking that maybe it has to do with something else that I changed in the project. Is
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 user.recently_reset_password? end BUT once logged, when the current user edit himself th...
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
Hi there, I''m trying to set up LoginEngine with Rails 1.1.2 on Ruby 1.8.4 on a Windows XP box and the log is reporting: undefined method `generate_security_token'' for #<User:0x39436a0> Rendering user/signup Rendered user/_edit (0.01600) Rendered user/_password (0.01600) Rails appears to be failing on key = @user.generate_security_token in user_controller.rb in the
2007 Feb 16
4
Auto detect URL for ActionMailer?
...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: class UserNotifier < ActionMailer::Base def signup_notification(user) setup_email(user) @subject += ''Please activate your new account'' @body[:url] = "http://localhost:3000/account/activate/#{user.activation_code}" end I think this has been answered on the forum alr...
2007 Feb 14
1
Scheduling in backgroundrb not working
Hi , How do i schedule a job that can send emails at intervals of time using backgroundrb and rails For testing When i hit the controller i''m able send the emails. but that is not i intend to do ..... I want to use backgroundrb and rails in which i''ll schedule a job for every 5 minutes/ 1 minute or so..... to send an email But when i write
2009 Jan 18
3
ActionMailer and url_for in helper methods
...p;gt; <a href="http://customdomain/page/2">2</a> How do you that? I tried using default_url_options but it doesn''t affect the helper methods I''m using in the email. Can somebody help me? Thanks! Conrad ---- Here''s an excerpt of my code: class UserNotifier < ActionMailer::Base helper :application # Emails the user the recent changes on the wiki def changes(user, page) ... default_url_options[:host] = user.custom_host @body => {"page" => page} ... end end views/user_notifer/changes.rhtml: <%= breadcrum...
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
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