Hi Phlip, I appreciate the feedback. Firstly, I renamed users to
all_users and the error is still there; therefore, no aliasing occurs.
Secondly, I've tried as you wrote:
(all_users || (p 'still nil!'; []).each
Notifier.deliver_newsletter(user, newsletter)
end
but that gives a syntax error ("Unexpected kEND"). I'm new to Ruby!
Lastly, do you mean to say that this method is best moved to the
Newsletter model instead of being in the controller?
/ Vahagn
--
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---