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

Commands/ generators we can use with Brick #11

Open
Azzawie opened this issue Dec 23, 2023 · 1 comment
Open

Commands/ generators we can use with Brick #11

Azzawie opened this issue Dec 23, 2023 · 1 comment

Comments

@Azzawie
Copy link

Azzawie commented Dec 23, 2023

Could you list all the commands/ generators we can use with Brick, I tried to generate controllers but can't figure out the command.
I tried this bin/rails g brick:controllers but had no luck.

@lorint
Copy link
Owner

lorint commented Dec 26, 2023

I tried to generate controllers but can't figure out the command

Heya Mustafa -- thank you for reaching out about generators! Previously we didn't have one for controllers, so this morning have crafted an update to provide this feature. If you have Brick in an existing project then just run bundle update brick in order to pull down at least version 1.0.193, and then (just as you had expected), you can now run:

bin/rails g brick:controllers

Being as this is a first take on providing the functionality to auto-generate controller files, we would be eager to hear feedback and any further suggestions that you might have.

Other similar generators you can use include those for models, migrations, and seeds. In the future there are definite plans to have a generator for view templates, and possibly also one for routes.

Thanks very much!

-Lorin

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

2 participants