Skip to content

Conversation

@lucasbibiano
Copy link

For the hacktoberfest 😛

<hr>
<hr>

<h3>Unsubscribe : (</h2>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsubscribe :

could you please remove the blank space before the :?

:enable_starttls_auto => true
}

config.action_mailer.default_url_options = { :host => "your-weekly-production.herokuapp.com" }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? The app already works fine today.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for the link_to, it needs the host parameter to build the url

end
end

def unsubscribe
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please extract this action and the cancel_subscription to another controller? This one is turning a little cumbersome.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like an unsubscribe controller?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup

end
end

def cancel_subscription
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a better name here would be confirm unsubscribing or something like it. Just by the name is a little hard to differ from the one above (unsubscribe).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, i felt the same thing about the naming

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