Skip to content

Commit

Permalink
Merge pull request turingschool#52 from shepmaster/patch-1
Browse files Browse the repository at this point in the history
Update source/topics/decorators.markdown
  • Loading branch information
jcasimir committed Jan 27, 2012
2 parents 32082d1 + 9923700 commit a680f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/topics/decorators.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ The resulting HTML looks like this:

Going a step further than Steve's approach:

* Implement an `.index_link` presenter method that output the HTML link with the `REL` attribute set to `"index"`
* Implement an `.index_link` presenter method that outputs the HTML link with the `REL` attribute set to `"index"`
* Implement a `.link` presenter method that outputs a link to the article, but sets the `REL` to `"self"` if the app is currently on that article's show page. If it's called from the index page, make the `REL` `"article_1"` with the correct ID
* Can you abstract this into a `module` such that it could be included in a `CommentPresenter` and work for both? Try it.

Expand Down

0 comments on commit a680f1d

Please sign in to comment.