-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi, I'm started to see the following messages with Ruby 1.9.3. Did the API change. Here's my mailer:
users_mailer.rb:
class UsersMailer < MadMimiMailer
def update_project_confirmation( user, project )
subject "#{ActionMailer::Base.default_url_options[:host]} - Thank you for updating your project"
from "[email protected]"
recipients user.email
body :full_name => user.name, :project_name => project.name
end
end
Error:
1.9.3p196 :002 > UsersMailer.deliver_update_project_confirmation( project.user, project )
User Load (37.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
NoMethodError: undefined method `subject' for #<UsersMailer:0x007fb142078668>
from /Users/conradwt/rails.dir/projects/catarse/app/mailers/users_mailer.rb:22:in `update_project_confirmation'
from /Users/conradwt/.rvm/gems/ruby-1.9.3-head/bundler/gems/mad_mimi_mailer-80c2ee30a10a/lib/mad_mimi_mailable.rb:65:in `deliver_mimi_mail'
from /Users/conradwt/.rvm/gems/ruby-1.9.3-head/bundler/gems/mad_mimi_mailer-80c2ee30a10a/lib/mad_mimi_mailable.rb:57:in `method_missing'
from (irb):2
from /Users/conradwt/.rvm/gems/ruby-1.9.3-head/gems/railties-3.2.3/lib/rails/commands/console.rb:47:in `start'
from /Users/conradwt/.rvm/gems/ruby-1.9.3-head/gems/railties-3.2.3/lib/rails/commands/console.rb:8:in `start'
from /Users/conradwt/.rvm/gems/ruby-1.9.3-head/gems/railties-3.2.3/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Metadata
Metadata
Assignees
Labels
No labels