class ActivityMailer < ActionMailer::Base
  include Resque::Mailer

  default from: "Factlink <support@factlink.com>"

  def new_activity(user, activity)
    mail to: user.email, subject: 'New notification!'
  end
end

class ActivityMailer < ActionMailer::Base
  include Resque::Mailer

  layout "email"

  default from: "Factlink <support@factlink.com>"

  def new_activity(user, activity)
    @user = user
    @activity = activity

    mail to: user.email, subject: 'New notification!'
  end
end

Set the correct layout for the email and set the correct globals
Set the correct layout for the email and set the correct globals
