Ruby on Rails equivalent for Maven archetypes

Maven archetypes are convenient ways to get a project in no time at all. Rails are kind of like an archetype on their own. However, I am curious to find out if there are Rails equivalents for Maven Archetypes.

For example, I want to create an Archetype with full authentication already built in through Authlogic. With Maven Archetypes, I will need to build a project that is already ready to work, create my archetype and start working with parameters that should be parameterized. Then anyone can create a Rails project with Authlogic configured by filling out a few questions while creating an archetype using the command and boom! A fully functional Rails application with built-in Authlogic.

Is there an equivalent to Rails? Do generators expect to do this? Is it just not Rails-y?

+4
source share
2 answers

I think rails application templates are the most similar to Maven Archetypes. http://railscasts.com/episodes/148-app-templates-in-rails-2-3 is a good starting point for getting an opinion on them.

+3
source

Are you looking for Modules and Mixers ?

I'm not sure, but rails casts might add something else.

+1
source

Source: https://habr.com/ru/post/1334569/


All Articles