railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.9k stars 2.26k forks source link

Namespace controllers and models to prevent conflicts with existing classes #118

Closed d1rewolf closed 13 years ago

d1rewolf commented 14 years ago

Guys,

Tried rails_admin in an existing project I had today. Right out of the gate, I had two problems...my app already has a users table, which is apparently where devise expects to be, and my app already has an admin_controller.rb.

Is there not a way to better namespace rails_admin, so that these two (what I imagine as) very common names don't conflict?

Thanks!

kaapa commented 14 years ago

Hi,

what comes to controllers those have been namespaced in this commit. Namespacing of the engine's routes will be available in Rails 3.1 / mountable apps - at the moment and possibly until then RailsAdmin routes have the /admin prefix I'm afraid.

I hope someone else will respond to the authentication issue as I have not been dealing with it... I'm sure though that you are able to integrate your current user table with devise (or warden) or create a custom auth hook if those are feasible solutions from your point of view.

kaapa commented 13 years ago

I'm closing this as namespacing has been addressed and mountable apps has its own issue.