Displaying 20 results from an estimated 200 matches similar to: "experimental rails story adapter in trunk"
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
2006 Jul 18
7
Observer not working
Help please.
I''m trying to observe a User class, but I can''t get this to work, the
after_create method never gets called... (the breakpoint never gets
called)
app/models/user_observer.rb:
class UserObserver < ActiveRecord::Observer
def after_create(user)
breakpoint
setting =
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
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:
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/
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
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
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 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 =
2007 Feb 04
10
Spec''ing ActionMailer
Good morning (Pacific Time). I have a controller action that, as a
side-effect, sends an email to an administrator. I want it to do
something like this:
specify "when someone successfully signs up, an email should be sent
to the administrator with the person''s contact page" do
post :signup, {...lots o'' params}
response should_be success
#
2006 Jul 07
3
Observer and Plugin conflict...
Hi fellas,
I have setup the acts_as_authenticated plugin and activated the
UserObserver to send activation emails.
I also have a homemade security plugin which adds methods to
ActiveRecord::Base like let_read and let_write.
On the server start, those two enter in conflict because the Observer
does something with the User model but it can''t find the let_read and
the let_write
2007 Feb 01
3
should_redirect_to in rspec-0.8.0 / rspec_on_rails 1453
I have a spec:
specify "a post with no user id should add a record" do
post :edit_or_create, :user => {:login => ''joeschmoe'', :email =>
''joe at shmoe.com'', :email_confirmation => ''joe at shmoe.com'', :full_name
=> ''Joe Schmoe''}
assigns[:user].should_not_be_nil
2005 Jun 20
1
voicemail system
Hello,
I wish to use asterisk as a voicemail server with ser
.
I want to use asterisk external configuration toHello,
I wish to use asterisk as a voicemail server with ser
.
I want to use asterisk external configuration to
manage users and storing voicemail messages according
to ser database.
Where can i find the schema of the SQL DB for
voicemail accounts .
for example in extconfig ;
2004 Apr 15
2
TE405P + Adit 600 and FXO module - should this work?
Folks,
I'm experimenting with bringing multiple (8) analog lines from our local
telco into a Carrier Access ADIT 600 channel bank with an FXO module, then
having this talk to Asterisk via the T1 TDM controller on the ADIT and a
TE405P card.
I don't know if this will work well (ie: give me decent echo cancellation,
call disconnect supervision, caller ID etc) but I haven't had much
2010 Oct 03
1
Rails 3 observers
Rails Guides says:
...the UserObserver ... would be saved as app/models/user_observer.rb
and registered in config/environment.rb this way:
config.active_record.observers = :user_observer
But the observer registration above doesn''t work because there is no
''config''. For now, I''ve put it in the config/environments/[APP_ENV].rb
but that seems really sloppy and
2006 Mar 04
2
Declaring ActiveRecord observers
Hello
I''m using the ''act_as_authenticated'' plugin to implement a small and
simple authentication system in my app. Everything is working just
fine and the world is a better place to live in. The plugin creates a
ActiveRecord observer in order to send the newly registered user a
confirmation e-mail.
Per the API docs [1], one should declare the observer in the
2007 Jan 22
1
Observed models cause failures with DRBSpec ?
Hi all !
I don''t believe I am the only one using model observers, right ?
Well, here''s a nice one:
$ drbspec spec
.
Finished in 0.125322 seconds
1 specification, 0 failures
$ drbspec spec
F
1)
''A user with an inactive and an active project should be able to
return active projects only'' FAILED
[] should == [#<Spec::Mocks::Mock:0xb75590bc
2018 Sep 18
1
Intermittent Authentication Errors
Hello Samba People,
We have a Kerio Connect (email) server using Samba 4.8.5 as it’s directory service (3 AD DCs). We’ve been using this setup for about 3 years now.
Over the last several months, we’ve been trying to find out why Samba starts rejecting attempts that the Kerio Connect mail server makes to authenticate our users. The errors in Kerio look like this:
Authentication failed for user
2009 Oct 28
2
How to send a html email with attachment
Hi guys:
I wanna send a html format email with a attachment.
What I do is like:
model:
def weekly_report
address = WeeklyReportEmail.find_all_by_validate(true).collect(&:address).to_sentence(:last_word_connector
=> '','', :two_words_connector => '','')
@recipients = address
@from = "Chronos weekly report
2007 Nov 12
1
help debugging ActionMailer with restful_authentication?
In a nutshell, I''m using restful_authentication that emails the user
when they sign up for an account
The development.log file shows the body of the e-mail message being
prepped to send out, but doesn''t show confirmation that it made it.
When I use gmail''s SMTP server, a Rails exception is thrown because
gmail expects an encrypted connection. A different type of Rails