#49 new
Will Sargent

plugin name cannot match any top level class name

Reported by Will Sargent | June 28th, 2009 @ 05:47 AM

So, I want to create an administration app.

script/generate plugin admin

And then I want to create a namespaced controller under /admin/artists

map.connect '/admin', :controller => '/admin'

map.namespace(:admin) do |admin|



module Admin
class ArtistsController < ApplicationController

end end

I can't do this, because it says that it's expecting Admin to be defined in lib/admin.rb, and defining a module Admin in lib/admin.rb doesn't help.

The workaround is to rename the plugin to 'admin_console', which will make it work fine.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The rails engines plugin itself

Shared Ticket Bins

People watching this ticket