Add generators by tchiadeu · Pull Request #2 · Intrepidd/hyperactiveform · GitHub
Skip to content

Add generators#2

Merged
Intrepidd merged 5 commits into
Intrepidd:mainfrom
tchiadeu:add_generators
Dec 22, 2024
Merged

Add generators#2
Intrepidd merged 5 commits into
Intrepidd:mainfrom
tchiadeu:add_generators

Conversation

@tchiadeu

Copy link
Copy Markdown
Contributor

Here is a setup to add a small generator.
Maybe the naming is a little bit redundant but it's to keep in mind than the form object will be in forms folder.

If you merge the PR, you can also add the information in the readme.

@Intrepidd Intrepidd left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! That's a great contribution :)

Any way to have a more short generator experience ? maybe rails g form foo_bar instead of rails g hyper_active_form:form

I'm not sure this is even possible, I don't have much experience with rails generators.

Also, when trying it out, it generated a test unit spec although the repo I tried it in uses rspec, any idea why ?

you can now go for "rails g form foo_bar" instead of "rails g
hyperactiveform:form foo_bar"
@tchiadeu

Copy link
Copy Markdown
Contributor Author

@Intrepidd Intrepidd merged commit abc5e55 into Intrepidd:main Dec 22, 2024
@Intrepidd

Copy link
Copy Markdown
Owner

@tchiadeu tchiadeu deleted the add_generators branch December 22, 2024 13:16
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

Successfully merging this pull request may close these issues.

2 participants