Skip to content
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.

Change readme code examples to be more explicit #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottillogical
Copy link

Updating readme to show the two different examples more explicitly. The previous code example was confusing to me.

Updating readme to show the two different examples more explicitly.  The previous code example was confusing to me.
@@ -31,6 +31,7 @@ class PeopleController < ActionController::Base
end
end
```
This will pass with flying colors as long as there's a person key in the parameters, otherwise it'll raise a ActionController::MissingParameter exception, which will get caught by ActionController::Base and turned into that 400 Bad Request reply.

Choose a reason for hiding this comment

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

It should be ActionController::ParameterMissing instead.

I believe mine #158 can be closed when your pull request is merged.

Copy link
Contributor

Choose a reason for hiding this comment

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

Language could, perhaps, be a little less flowery.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants