Skip to content

Commit

Permalink
oragnize -> organize
Browse files Browse the repository at this point in the history
  • Loading branch information
soma committed Nov 29, 2012
1 parent 66637f8 commit 21ef6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/chapters/1900-01-10-10-api-driven-example.md
Expand Up @@ -416,7 +416,7 @@ Another`rake` and hey! Some interesting data!

![color tags in app](images/4.png)

And now one more thing: adding new tags. There are a couple of ways to oragnize this new feature, like `Tag.create(tag)` or magically hack into `color.tags << tag`, but we're going to go with `color.add_tag(tag, &block)`. Why? Because it shows that tags and colors are tightly coupled.
And now one more thing: adding new tags. There are a couple of ways to organize this new feature, like `Tag.create(tag)` or magically hack into `color.tags << tag`, but we're going to go with `color.add_tag(tag, &block)`. Why? Because it shows that tags and colors are tightly coupled.

Here's what that `add_tag` method looks like:

Expand Down Expand Up @@ -478,4 +478,4 @@ What should we take away from this?
- Use your controllers to respond to callbacks and user events.
- Keep the interface responsive by disabling or changing the UI while time consuming requests are running.

[colr]: http://www.colr.org/api.html
[colr]: http://www.colr.org/api.html

0 comments on commit 21ef6b6

Please sign in to comment.