README.md in mongoid-urls-0.0.7 vs README.md in mongoid-urls-0.0.9

- old
+ new

@@ -1,23 +1,25 @@ Mongoid::Urls ============= -[![Gem Version](https://badge.fury.io/rb/mongoid-urls.png)](http://badge.fury.io/rb/mongoid-urls) +[![Gem Version](https://badge.fury.io/rb/mongoid-urls.svg)](http://badge.fury.io/rb/mongoid-urls) [![Dependency Status](https://gemnasium.com/nofxx/mongoid-urls.svg)](https://gemnasium.com/nofxx/mongoid-urls) -[![Build Status](https://secure.travis-ci.org/nofxx/mongoid-urls.png)](http://travis-ci.org/nofxx/mongoid-urls) -[![Code Climate](https://codeclimate.com/github/nofxx/mongoid-urls.png)](https://codeclimate.com/github/nofxx/mongoid-urls) +[![Build Status](https://secure.travis-ci.org/nofxx/mongoid-urls.svg)](http://travis-ci.org/nofxx/mongoid-urls) +[![Code Climate](https://codeclimate.com/github/nofxx/mongoid-urls.svg)](https://codeclimate.com/github/nofxx/mongoid-urls) [![Coverage Status](https://coveralls.io/repos/nofxx/mongoid-urls/badge.svg)](https://coveralls.io/r/nofxx/mongoid-urls) ## Mongoid::Urls Simple slugs for mongoid models! +Set the fields you want to try to make an URL out of, +when impossible, use your logic or set the url directly. ## Nice URLs for Mongoid Documents -This library is a quick and simple way to generate slugs -for your mongoid documents. +This library is a quick and simple way to generate URLs (slugs) +for your Mongoid documents. Mongoid::Urls can help turn this: http://bestappever.com/video/4dcfbb3c6a4f1d4c4a000012 @@ -34,16 +36,18 @@ In your Mongoid documents, just add `include Mongoid::Urls` and use the `url` method to setup, like so: ```ruby -class Video +class Company include Mongoid::Document include Mongoid::Urls - field :title + field :nickname + field :fullname + ... - url :title + url :nickname, :fullname, ... end ``` And that's it! There's some configuration options too - which are all