Forum: Ruby on Rails acts_as_authenticated mailing for activation problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7fc62c7ce136d50a68b13beb00765218?d=identicon&s=25 Piers (Guest)
on 2006-05-22 11:57
Hi

I'm relatively new to all this, so sorry if this is a daft question.

I've got the acts_as_authenicated plugin working and have added the user
activation extras - which is all fine but I can't seem to get the
activation mail sent.

My mail setup in config/environment.rb works with other notifiers, so I
was wondering if there's anything I'm not adding to the signup method in
the account controller?

At the moment I've got:

class AccountController < ApplicationController
  observer :user_observer

...

  def signup
    @user = User.new(params[:user])
    return unless request.post?
    if @user.save
      redirect_back_or_default(:controller => '/account', :action =>
'index')
      flash[:notice] = "Thanks for signing up!"
    end
  end
...

Would really appreciate any help if people have time

Thanks
Piers
This topic is locked and can not be replied to.