
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
rails_interactive_generators
Advanced tools
Rails comes with handy generators and they are rich in features. But to use them you will have to remember the syntax of using them or have to go through documentation. Also these features are upto a certain extent, they have some limitations as well. So mostly generators are underused. For example, generator is used for creating a migration and then developers end up writing code inside it manually.
So what if you start a generator and generator asks you questions and provides option to choose from and as per the inputs the code is generated? Yes, that's the main idea behind this gem. It run generator in interactive way and generates code. Using these generators is also very good for those who are learning Rails newly as you get to use generators interactively
You can add this line to your application's Gemfile:
gem 'rails_interactive_generators', group: :development
And then execute:
bundle install
Using rails interactive generators is very similar to how you use regular rails generators.
You can use generator like:
rails generate interactive:GENERATOR_NAME
and then enjoy easily entering or selecting options interactively to the questions asked on terminal.
| Functionality | Command |
|---|---|
| model | rails generate interactive:model |
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
Bug reports, feature requests and pull requests are welcome on GitHub at https://github.com/anandbait/rails_interactive_generators. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
RailsInteractiveGenerators is evolving with the time and awesome contributions. You can find the evolution changelog here
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the RailsInteractiveGenerators project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that rails_interactive_generators demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.