hakanensari/mongoid-slug — Issue #53: use slug in differents controllers
Author: hyperrjas
Created: 2012-03-08 20:44:17+00:00
State: open

I have this mode:

class Board
include Mongoid::Document
include Mongoid::Timestamps::Created
include Mongoid::Slug

field :name

#slug
slug :name

end

I have a controller in root controllers directory with name boards_controller.rb

But I have inside controller directory a directory with name admin and I have inside other boards_controller.rb.

Then for this last controller have a path controllers/admin/boards_controller.rb

**I want to use slug only in first controller. In this last controller I don't want to use slug.
How can I do it?**

The question is in http://stackoverflow.com/questions/9624623/scoping-mongoid-slug

Thank you