Skip to content

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.

@leastbad leastbad added on hold proposal ruby Pull requests that update Ruby code labels Jun 30, 2021
@marcoroth marcoroth changed the base branch from master to main February 13, 2023 16:47
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.

2 participants