Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Add permalinks to your mongoid models
branch: master

missing space

latest commit b90a965d75
Damien Mathieu authored
Failed to load latest commit information.
lib first commit
spec first commit
.gitignore first commit
.rvmrc first commit
Gemfile first commit
Gemfile.lock first commit missing space
Rakefile typo
VERSION first commit
permoid.gemspec first commit


Add permalinks to your Mongoid Models


  • Ruby, 1.8.7 or 1.9.2
  • Mongoid 2.0.0


  • Install the gem and include it to your project/Gemfile.
  • Define a model with a permalink :

    class Testing include Mongoid::Document include Permoid::Base

     field   :title
     validates_presence_of :title


Go roll !

Warning !

Currently, the gem relies on the title field to build the permalink. There's no way to change that (yet).


If you think Permoid is great but can be improved, feel free to contribute. To do so, you can :

  • Fork the project
  • Do your changes and commit them to your repository
  • Test your changes. We won't accept any untested contributions (except if they're not testable).
  • Create an issue with a link to your commits.

And that's it! We'll soon take a look at your issue and review your changes.


Damien MATHIEU :: 42 (AT|CHEZ)

Something went wrong with that request. Please try again.