No commit activity in last 3 years
No release in over 3 years
Gem to provide friendly url system for mongoid projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

#Mongoid Friendly URL#

This Gem provides a system for easily construct friendly urls for your mongoDB projects in rails.

#Installation#

Add the gem in yout Gemfile file:

gem 'mongoid-friendly-url', :git => 'https://github.com/PedroEscudero/mongoid-friendly-url.rb'

#How to use#

After installing the Gem, you have to include the Sluged module in the Models in which you want to have friendly urls:

include Sluged

After that you have to declare what field is going to be used for making the friendly URL, as following:

FIELD_FOR_SLUG = "name_of_field"

The find method is overwriten, so is not necesary to change any code in your current project (but you be aware if you are overwriten the find method in your model). You can also build a basic scaffold, an the result will be as usual.