Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farski/stateface-rails
https://github.com/farski/stateface-rails
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/farski/stateface-rails
- Owner: farski
- License: other
- Created: 2012-04-18T21:35:08.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-11-23T20:10:10.000Z (about 10 years ago)
- Last Synced: 2024-08-10T21:21:52.962Z (5 months ago)
- Language: Ruby
- Size: 182 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stateface::Rails
In application.css
*= require propublica/statefaceIn your views
<%= 'ma'.to_stateface %>
will map a state abbreviation (CA, HI, MA, etc) to the corresponding letter StateFace uses.
Or create a span tag with the class for an abbreviation.
<%= stateface_tag('ma') %>
or use font-face: StateFace however you'd like