-
Notifications
You must be signed in to change notification settings - Fork 82
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
CRUD idea #19
Comments
This would be a (logic) level higher than what em is right now.
I would like to have something like this, too. Maybe it could use something like Meteor Autoform and Simple Schema. The list view could use this schema as well to show all available fields, or maybe add an option to the schema for visibility of fields in table / detail view? I think this would be a nice external package to em:
|
I am a Rails Developer (7 years now, since Rails 1.21) and i do use scaffolding frequently. Firstly, because i care a lot more about back end logic than I do front end. I usually leave the html scaffolded as is, since a designer is probably gonna change everything anyway. But I do like that it generates a basic controller for me, which really doesn't changes much (at least as far as CRUD goes). It also generates some tests, and this is probably THE best feature of the rails scaffolder. It makes it super duper easy to write tests, because they are already there and working, and there are even a lot of examples in the tests/specs folder for you to guide yourself. This is something quite important to add, because without it every time you scaffold anything you would have less test coverage until you added them manually. Another cool thing about rails's scaffolding is that you can customize its templates. So a designer could go ahead and create your CRUD templates before you scaffold anything, and then when you do there will be fewer changes to be made. I would really love a CRUD scaffold feature, not only for speeding development time (at least for prototypes), but also because they help new developers to understand how to do a basic CRUD in the meteor framework the "standard" or "popular" way. Since meteor doesn't enforces anything the way Rails does, every project has different folder structures and code conventions, which is not a good thing. |
+1 |
Today I had to create a blog for my soon-to-launch startup, and one thing that was kind tedious was to create all of the admin CRUD functionality for the blog. In other words, creating a table view to list all blog posts, a form view to add and edit posts, and the methods and all of the check() functions. When using em, I though it would be kind of nice to either have an additional argument that you could pass in when executing the scaffold command:
or it could just be an entirely separate generator:
I'd be happy to fork this and submit a pull request if you think this could be useful. What do you think?
The text was updated successfully, but these errors were encountered: