Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

scaffold skip module (namespace module) #2613

Closed
shenoudab opened this Issue Aug 20, 2011 · 3 comments

Comments

Projects
None yet
4 participants

Dears,

how to skip module (namespace module) in scaffold and scaffold_controller generator for not include the namespace module in rails 3.1, this feature is not included yet

Best Regards,
Shenouda Bertel

Member

arunagw commented Jan 31, 2012

Why you want to do this? Any more comments please so we can get more focus on this.

when creating a scaffold generate or scaffold_controller with namespace a new model create in the namespace folder and the controller have objects "namespace_model = Namespace::Model" which is not a must requirement.

my approach is the ability when generate scaffold or scaffold_controller to generate controller in namespace folder with normal controller template "model = Model.find*"
and not to create model in the namespace folder if it's not already exist.

for any questions please, provide me with your comments.

Thanks,
Shenouda Bertel

Contributor

isaacsanders commented May 4, 2012

Any thoughts on this @arunagw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment