This project is archived and is in readonly mode.
generate scaffold problems with namespace
-
Arjun
- Tag changed from 2.1.1, generate, namespace, scaffold to 2.1.1, generate, namespace, scaffold
I also got the same error. Someone going to correct this?
-
CamasMan
If you ask me, scaffolding should allow me to setup a system for the model, Book, and then append a system using a controller and views in the admin namespace - but reference the normal Book model. That allows me to customize the "normal" set of controller/helper/views to set the user experience, and then to customize the /admin/book controller/helper/views differently to set a unique admin experience.
Referencing the @admin_book object from the Admin::Book model isn't typically what's needed in the admin space.
-
Danilo
Hi, i've generated static scaffold on my test machine with script/generate scaffold Admin::Users .
The only problem that I've is table name in model class, users istead of admin_users (as defined by script in migration file).
By design what's the rigth way? In the mean time I've to force table name in model class ?
Thanks Danilo
-
tsechingho
- Tag changed from 2.1.1, generate, namespace, scaffold to 2.2, generate, namespace, scaffold
How about the namespace other than "admin"?
Loading development environment (Rails 2.2.0)
Product::Variant.table_name => "product_variants" Shipping::Category.table_name => "categories"
Product::Variant is created under rails 2.1.1 and Shipping::Category is created under rails 2.2.0(edge). Both of them are in the same project but I have to set table name manually for Shipping::Category.
-
Danilo
My problem is with Rails 2.1.1
-
Danilo
Mmm ... I've discovered that also form_for fail.
I've this situation: Namespace Admin - Class Admin::User
|->Has Many -> Class Admin::TripIn Trip template form_for looks for admin_trip_path instead of admin_user_trip_path.
I don't know rails so good so I don't understand if it's a bug or not.
-
CancelProfileIsBroken
Other ticket, with potential patch: #1976 Scaffold generator not working well with namespaced resources