[Rails] Re: Actionmailer woes
Hi Colin
Thanks for bearing with me. Your thinking is spot on in agreement with
how I understand ruby. And yet
> class PokeMailer < ActionMailer::Base
> def receive(email)
> ...
> end
>
> I then invoke the receipt of email with
>
> task = PokeMailer.receive(m.pop)
works 100%
I tried creating an instance of PokeMailer (see first post)
pm = PokeMailer.new(userid)
But it just returns nil, and pm.receive says nil doesn't have a receive
method.
I think its something to do with Actionmailer - but it definitely doesnt
behave like a normal class.
:(
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home