-
Notifications
You must be signed in to change notification settings - Fork 55
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
Route example in README broken? #37
Comments
I get this as well. Either an error in the code or in the README. |
Looking at the relevant part of the code, there is a bug where the def create(description, priority, filter, actions)
data = ::Multimap.new
data['priority'] = priority
data['description'] = description
data['expression'] = build_filter(filter)
actions = build_actions(actions)
actions.each do |action|
data['action'] = action
end
# TODO: Raise an error or return false if unable to create route
Mailgun.submit(:post, route_url, data)["route"]["id"]
end
cc @HashNuke |
My fault, it seems this functionality is provided by the embedded |
Copy-pasting the example in the README yields a
Mailgun::Error
:The text was updated successfully, but these errors were encountered: