Readme

Gem Version

Gemified collection of country flags.

Usage

Add to your Gemfile:

gem 'country_flags'

Run:

bundle install

In views:


# using helper
country_flag 'bg'
country_flag 'bg', format: 'gif'

image_tag country_flag_path 'bg'
image_tag country_flag_path 'bg', :gif

# gif version
image_tag 'country_flags/gif/bg.gif'

# png version
image_tag 'country_flags/png/bg.gif'

Testing

Use rspec to run the tests.

bundle exec rspec

Credit

Country flags are made by famfamfam.

Contributing

Your contributions are welcome. Please fork the project, make a new branch and send me a pull request.