-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send_mail_to_users #6
Conversation
<%= JsRoutes.generate(default_url_options: { :host => 'localhost:3000' }, url_links: true, exclude: [/admin/] ) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asta nu a mers sa lasi cu ENV?? De ce ai pus fix localhost:3000 ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
te rog sa pui la loc ENV['APP_DOMAIN'] aici si o sa fac merge.
$('form#notify').submit -> | ||
dataString = $('.messageTextarea').val() | ||
theid = $(this).attr('data-the_id') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pentru ce folosesti asta?
@error = Issue.find(params[:id]) | ||
@message = params[:message] | ||
Website.find(@error.website_id).subscribers.each do |member| | ||
UserMailer.issue_solved(@error, member, @message).deliver_now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hai sa schimbam si numele asta sa ii zicem notify_subscriber
si fai un IssueMailer
si sa lasam UserMailer pt altceva.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deci fai IssueMailer.notify_subscriber
describe 'GET #show' do | ||
it 'should assign error' do | ||
auth_member(member) | ||
get :show, { id: issue_error.id, error: {status: issue_error.status }, website_id: website.id, format: :json } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aici nu ai nevoie de error: {status: issue_error.status}
pt ca nu faci update doar vrei sa iei issue. la fel si la testu de jos
%p An issue has just been solved. | ||
%p Website title: #{@website.title} | ||
%p #{@message} | ||
%p Thanks for joining and have a great day! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Schimba mailu asta sa fie asa:
Hi, #{@member.name},
%p #{@message}
%p This email was sent because you subscribed to an error on our website.
No description provided.