Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scaffold skip module (namespace module) #2613

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

scaffold skip module (namespace module) #2613

shenoudab opened this issue Aug 20, 2011 · 3 comments

Comments

@shenoudab
Copy link

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

@arunagw
Copy link
Member

arunagw commented Jan 31, 2012

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

@shenoudab
Copy link
Author

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

@isaacsanders
Copy link
Contributor

Any thoughts on this @arunagw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants