Skip to content
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

Merged
merged 24 commits into from
Jul 28, 2015
Merged

send_mail_to_users #6

merged 24 commits into from
Jul 28, 2015

Conversation

Panioglo
Copy link
Member

No description provided.

<%= JsRoutes.generate(default_url_options: { :host => 'localhost:3000' }, url_links: true, exclude: [/admin/] ) %>
Copy link
Member

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 ??

Copy link
Member

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')
Copy link
Member

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
Copy link
Member

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.

Copy link
Member

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 }
Copy link
Member

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!
Copy link
Member

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.

@Chocksy Chocksy merged commit b83a9e2 into master Jul 28, 2015
@Chocksy Chocksy deleted the mail branch July 28, 2015 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants