Commit 8ae28b75c54ca658f8570457a88f6e5f2e780ed4
1 parent
562bd019
Exists in
master
readme
Showing
1 changed file
with
13 additions
and
5 deletions
Show diff stats
README.md
... | ... | @@ -41,12 +41,20 @@ LetterAvatar.generate 'ksz2k', 200 |
41 | 41 | => "public/system/letter_avatars/2/K/87_178_230/200.png" |
42 | 42 | ``` |
43 | 43 | |
44 | -There's also helper for this: | |
44 | +There's also helper for this. To use it, you need: | |
45 | 45 | |
46 | -```ruby | |
47 | -include LetterAvatar::AvatarHelper | |
48 | -letter_avatar_for('ksz2k', 200) | |
49 | -``` | |
46 | +* in your helper (eg. `ApplicationHelper`) or controller: | |
47 | + | |
48 | + ```ruby | |
49 | + include LetterAvatar::AvatarHelper | |
50 | + letter_avatar_for('ksz2k', 200) | |
51 | + ``` | |
52 | + | |
53 | +* and in your view: | |
54 | + | |
55 | + ```ruby | |
56 | + letter_avatar_for('ksz2k', 200) | |
57 | + ``` | |
50 | 58 | |
51 | 59 | ## Contributing |
52 | 60 | ... | ... |