Commit 03d0f2381ca30d05eebcf8457c71844ec4f566a1
1 parent
8e1346da
Exists in
master
Deleted unnecessary view
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
controllers/email_article_plugin_myprofile_controller.rb
... | ... | @@ -5,6 +5,8 @@ class EmailArticlePluginMyprofileController < MyProfileController |
5 | 5 | # before_filter :store_location, :only => [:join, :join_not_logged, :report_abuse, :send_mail] |
6 | 6 | # before_filter :login_required, :only => [:add, :join, :join_not_logged, :leave, :unblock, :leave_scrap, :remove_scrap, :remove_activity, :view_more_activities, :view_more_network_activities, :report_abuse, :register_report, :leave_comment_on_activity, :send_mail] |
7 | 7 | |
8 | + | |
9 | + | |
8 | 10 | def send_email |
9 | 11 | # puts "ID ***************************" |
10 | 12 | # y params[:id] |
... | ... | @@ -12,11 +14,13 @@ class EmailArticlePluginMyprofileController < MyProfileController |
12 | 14 | # profile = Profile[params[:profile]] |
13 | 15 | article = Article.find(params[:id]) |
14 | 16 | EmailArticlePluginMyprofileController::Sender.deliver_mail(article) |
17 | + render :text=>'ok' | |
15 | 18 | end |
16 | 19 | |
17 | 20 | |
18 | 21 | class Sender < ActionMailer::Base |
19 | 22 | def mail(article) |
23 | + | |
20 | 24 | members = article.profile.members |
21 | 25 | emails = [] |
22 | 26 | members.each{ |m| | ... | ... |
views/send_email.erb
No preview for this file type