search for: devisemailer

Displaying 2 results from an estimated 2 matches for "devisemailer".

Did you mean: devise_mailer
2011 Nov 21
0
How to use two different sets of mailer templates for two different Devise models?
I''m using Resque to send Devise emails. To do so I set: devise.rb config.mailer = "Mailers::Devise::DeviseMailer" But I have 2 devise models -- User and Client. I want to send different devise mailer templates for each. devise.rb says "The first four configuration values can also be set straight in your models.", and config.mailer is one of those first four, but I''m not sure how to s...
2011 Aug 09
0
Devise, RSpec and Webrat
...r" do @campaign.owner.should == @user end it "testing request" do visit "/" end end end I get: ActionView::TemplateError in ''Campaign in first step should have an owner'' super: no superclass method `response'' for #<DeviseMailer: 0x7f29a3a07610> In app/views/devise_mailer/confirmation_instructions.html.erb webrat (0.7.3) lib/webrat/core/methods.rb:31:in `response'' /usr/lib/ruby/gems/1.8/gems/rspec-rails-1.3.2/lib/spec/rails/ extensions/action_view/base.rb:27:in `render'' devise (1.0.9) app...