README.md in letter_avatar-0.3.4 vs README.md in letter_avatar-0.3.5
- old
+ new
@@ -100,10 +100,14 @@
```ruby
class User
include LetterAvatar::HasAvatar
...
+
+ def name
+ 'ksz2k'
+ end
end
```
Then, in your views you can use:
@@ -111,12 +115,9 @@
@user.avatar_path(200)
=> "public/system/letter_avatars/2/K/87_178_230/200.png"
# or
@user.avatar_url(200)
=> "/system/letter_avatars/2/K/87_178_230/200.png"
-# or even
-@user.avatar_tag(200, class: 'av')
-=> "<img class=\"av\" alt=\"ksz2k\" src=\"/system/letter_avatars/2/K/87_178_230/200.png\" />"
```
### Way to support non [a-z0-9] charsets
```rb