HashToHtml
Let's you call my_hash.to_html in your views and prints out the contents to html with ul and li tags
Installation
Add this line to your application's Gemfile:
gem 'hash_to_html'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hash_to_html
Usage
For example in an ERB template:
<%= @my_hash.to_html %>
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
License
Anyone anywhere can use this code in anyway whatsoever