activo-rails icon indicating copy to clipboard operation
activo-rails copied to clipboard

Generators

Open standardtoaster opened this issue 14 years ago • 3 comments

I think it would be pretty handy to write some generators for using activo and form/attrtastic. Should those go into web-app-theme, or do you think we should add them to activo-rails?

I ask because it appears that activo has diverged from web-app-theme. Including web-app-theme just to use the "themed" generators seems confusing.

Opinions?

standardtoaster avatar Jul 01 '11 20:07 standardtoaster

I have to admit I've never used the web-app-theme generators - what do they do?

I'm very happy to have some sort of form generator in activo-rails, but I very rarely use generators, so I'm probably not the person to be designing them.

jellybob avatar Jul 01 '11 21:07 jellybob

They basically set up all of the cruft, same as the standard scaffold, but the markup fornusing the themes that activo is built on.

I mostly use them for reference implementations, to get the hang of the markup expected of me - which I find is fairly difficult with activo.

I'm more than happy to contribute a generator, which I think would greatly help out new users. Do you happen to have a test or sanitized app that utilizes all of the fun stuff like attr/formtastic? It would help me check my implementation, which I could then use to write said generator, plus a reference app would be nice for testing.

standardtoaster avatar Jul 01 '11 21:07 standardtoaster

That sounds good to me - the only reference application I know of is Vowessly, the application that this was extracted from - it can be found at http://github.com/jellybob/Vowessly/. I'm not using attrtastic, but Formtastic gets a fairly decent workout.

jellybob avatar Jul 01 '11 22:07 jellybob