similar to: help debugging ActionMailer with restful_authentication?

Displaying 20 results from an estimated 400 matches similar to: "help debugging ActionMailer with restful_authentication?"

2008 May 02
4
spec''ing calls to super (or other Ruby keywords)
Hi there, How does one spec an invocation of a Ruby keyword, such as super in this case? class User < ActiveResource::Base # faking the ActiveRecord before/after_save observers def save super UserMailer.deliver_activation(self) if recently_activated? end end Does the solution look anything like the following? describe User do describe ''#save'' do it
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
2008 Apr 25
6
ActionMailer
Hi all, I need a help. I have got a user registration form, where the user signs up and then an activation link is sent to the user email id for activating his/her account. Now I need to send an another email to the user, only after he logs in for the first time in my site, then the second email should be sent. Can anybody give me some suggestion on how to do it ?? NB: When the user clicks on
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
I have restful_authentication in use on an app and it has been working fine, but I recently was changing the account creation flow and needed to enable the UserObserver. I did so by including it in the environment.rb (config.active_record.observers = :user_observer) and Rails wouldn''t start. I got the following error; source/communitysites/vendor/rails/activerecord/lib/active_record/
2007 Oct 24
1
Attachment_fu and observers/emailing
Hi all, I''m developing a site where a user can upload their CV/resume with a profile, and am using restful_authentication for this with attachment_fu to handle the file uploading. When a user creates their profile/user account, I''ve got an observer that will email the site admin with a copy of the uploaded CV. My user_observer looks something like: class UserObserver <
2008 Dec 11
2
restful_authentication errors
When I run [code] script/generate authenticated user --include-activation [/ code] it seems to work at first, but then it reports: " The name ''SessionsHelper'' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again " I''ve heard that having both acts_as_authenticated and
2007 Jun 30
8
attachment_fu not working on Textdrive
I have attachment_fu working on my local Windows machine (localhost: 3000) But when I transfer it to Textdrive (Solaris), it doesn''t work. Any ideas? Give it a shot: http://haloresearch.textdriven.com:8217/raw_data_files/new I haven''t got the logger working yet on TextDrive, but that will be my next step. Any suggestion on what things to look at first? Chirag
2008 Mar 14
1
how do I get a older version of restful_authentication
I''m currently running rails 1.2.6 and I''ve got the new restful_authentication running, unfortunately, the new version of the plugin does not support the older rails very well. how can I get an older version of restful_authentication (pre rails 2.0.2)? I''m getting this error: undefined method `authenticate_with_http_basic'' when I put "include
2008 Jan 17
0
It seems to be a restful_authentication bug (was Re: Re: named route new_session not working)
On 1/16/08, Jimmy Palmer <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > sorry for the ambiguity. I will work on being more descriptive. :) > > In the method access_denied in the file authenticated_system.rb from > restful athentication, it generates this: > > def access_denied > respond_to do |format| > format.html do >
2007 Dec 30
1
restful_authentication plugin + session timeout + single login session?
Hi, I am using restful authentication plugin 1) I was wondering if there is a way to do a session timeout using the restful_authentication. How do I hack it to get the behaviour I need? 2) On top of that, I may need to ensure that a particular user can only login from a single PC. If the user is already logged in at a PC and attempts to login from another PC, the session in which he signs in
2012 Feb 21
0
Scoped_views in rails2.3.5 with restful_authentication
I am using rails 2.3.5 and restful_authentication plugin. User model is inherited by visitor, spotter and subscriber. How to implement scoped_views for different user(visitor, spotter and subscriber) registration. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Aug 30
0
Anyone using "restful_authentication"
I had installed acts_as_authenticated and once that was working good and felt I understood it I went ahead and tried restful_authentication. Page says it''s based on AAA. I see some of the functionality is not included though such as the activation code. Can I just write it in myself ? TIA Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because
2008 Aug 25
1
Error message when installing restful_authentication from github
Anybody know if I''m doing something stupidly wrong here? $ script/plugin install git://github.com/technoweenie/restful-authentication.git removing: /Users/jcohen/dev/rest_with_rails/theater_login/vendor/ plugins/restful-authentication/.git Initialized empty Git repository in /Users/jcohen/dev/rest_with_rails/ theater_login/vendor/plugins/restful-authentication/.git/ remote: Counting
2007 Aug 04
2
Modifying the restful_authentication plugin / Classes creating instances of themselves.
Hi, I''m trying to modify the restful_authentication plugin so that it first authenticates against LDAP (Active Directory), if successful, it tries to find a matching user with the same username in the database, through a model ''user''. If it finds a user, it updates a last_login attribute; if it doesn''t find one, it creates one. The "remember me"
2007 Dec 16
2
restful_authentication: update of users' attributes on every page load upon 'Remember me' being enabled?
Hello there, I just noticed a kinda weird thing: if users log in with the ''Remember Me'' option enabled, their records in the db get updated everytime the user reloads a page, because apparently restful_authentication''s code updates the remember_token_expires_at & remember_token attributes for each page load (not only once on the actual login (from cookie).
2008 Sep 12
1
restful_authentication rspec failures "Mysql::Error: Incorrect datetime value:"
I am getting 193 failures that all have "Mysql::Error: Incorrect datetime value:" how do i fix this??? i am new to rspec and restful_auth, so if i am doing something wrong, let me know!!! windows xp rails 2.1.1 rails testproject cd testproject # create my databases and edit database.yml git init git submodule add git://github.com/dchelimsky/rspec.git vendor/plugins/ rspec git
2007 Aug 21
2
using restful_authentication current_user inside controller specs
I''m using restful_authentication in my app and I have the before filters in my application rhtml: before_filter :login_required around_filter :set_timezone around_filter :catch_errors Currently I have them commented out while rspec''in but I''ll need to add them in my specs. def create @ticket = Ticket.new(params[:ticket]) @ticket.user = current_user if
2007 Mar 19
2
Controller url_for modifies request object?
Hi, In my controller, I do something like this: MyMailer.deliver_signup_notification(url_for(:subdomain => account.subdomain, :controller => ''hello'')) And a few lines later: redirect_to :action => ''index'' Much to my confusion, the redirect routes me to the subdomain used in the url_for. I''ve tried redirect_to :action =>
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
2010 Feb 08
0
recommending friends, using RoR's Mailer
Hi there, I wan tto be able to allow users to invite friends... The action below is exactly the same as the code used to send a user their username. Only difference is, I need to change the ''''user = User.find_by_email(email)'''' part as obviously, I dont want to only email people who are already on the site. def invite @title = "Invitation"