lucky gen.resource.browser support skip model/migrations, or a new task for this. #1794
Replies: 2 comments 4 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Alright, this new option will assume the user know what he want, this is precondition, not all model need the RESTFul CRUD in advance, this just a way as a supplement. BTW: Do we consider add a new task which assemble the action with page, e.g. it is useful when create a action along with a same name page. so, the above two file can be created at same time use only one command. (consider when run lucky command, always need wait several seconds to compile, this is more worthy) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Basically, this same as following rails scaffold_controller task.
rails g scaffold_controller --help escription: Generates a scaffolded controller, its seven RESTful actions and related views. Pass the model name, either CamelCased or under_scored. The controller name is retrieved as a pluralized version of the model name. To create a controller within a module, specify the model name as a path like 'parent_module/controller_name'. This generates a controller class in app/controllers and invokes helper, template engine and test framework generators. Example: `bin/rails generate scaffold_controller CreditCard` Credit card controller with URLs like /credit_cards. Controller: app/controllers/credit_cards_controller.rb Test: test/controllers/credit_cards_controller_test.rb Views: app/views/credit_cards/index.html.erb [...] Helper: app/helpers/credit_cards_helper.rbThanks
Beta Was this translation helpful? Give feedback.
All reactions