Skip to content

Commit

Permalink
fix typos in README
Browse files Browse the repository at this point in the history
  • Loading branch information
moonmaster9000 committed Aug 25, 2012
1 parent 73fe2ae commit e1965b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module ApplicationHelper
end
```

And now you begin the tedious track of updating all of the JSON views with the helper:
And now you begin the tedious task of updating all of the JSON views with the helper:

```ruby
json.created_at format_timestamp(@article.created_at)
Expand Down Expand Up @@ -164,7 +164,7 @@ end
And that's it. You don't have to update any of your views. Why? When you call the `frill` method inside your controller and pass it an object (or a collection of objects),
frill will attempt to extend the object with any applicable frills (i.e., frills that return `true` for the `frill?` method when passed the object and the request context).

That way, you can simple render your `created_at` attributes without any helpers, and they will automatically present themselves appropriately for their context (e.g., HTML v. JSON requests).
That way, you can simply render your `created_at` attributes without any helpers, and they will automatically present themselves appropriately for their context (e.g., HTML v. JSON requests).

Note that if prefer, you can configure your controllers to automatically frill all objects for presentation by calling the `auto_frill` method inside your `ApplicationController`, instead of manually having to opt them it via the `frill` method:

Expand Down

0 comments on commit e1965b8

Please sign in to comment.