Categories: None [Edit]
pics_or_it_didnt_happen
Sometimes, you might want your HTML to include a one-off image file that is just for one person. Making this file public may be undesireable for security reasons, or perhaps simply because it is not worth the overhead of multiple HTTP requests.
This gem provides a utility method that takes a locally-saved image file, perhaps within your non-public tmp directory, encodes it as Base64, and returns an HTML
element with the correct data URL attributes.
It is made possible by the RFC 2397 scheme, which is now fairly well supported in modern browsers.
Total
Ranking: 162,547 of 197,314
Downloads: 3,540
Daily
Ranking: 99,080 of 197,258
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 1,027,775,139 | rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | gregmatthewcrossley |