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

Add scaffold generator #137

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

existentialmutt
Copy link
Contributor

This PR adds a rails generate cable_ready:scaffold generator to quickly bootstrap an in-page editing interfaces for resources powered by CableReady::CableCar.

Call it just like you would rails scaffold, with a resource name and a list of name:type attributes. It will generate the model, migration, controllers and views and ensure necessary javascript dependencies are installed (currently RailsUJS, Stimulus, and a custom Stimulus controller).

An example of the code it generates can be found here: https://github.com/existentialmutt/cable_car_messages/tree/scaffold_generator

@leastbad
Copy link
Contributor

I'm so excited to try this.

@existentialmutt
Copy link
Contributor Author

Excited to hear your feedback! I just pushed an update for generating system tests.

@leastbad leastbad marked this pull request as draft June 18, 2021 23:29
@leastbad
Copy link
Contributor

Rafe and I talked; we're going to let this simmer while the we see what people do with mrujs, cable_car and SR v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold proposal ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants