ashwintastic
ashwintastic

Reputation: 2312

How to create controller, model , helper inside a ruby gem?

This is the first time I'm trying to build a gem. I use bundle gem MyGem

there are three directories inside MyGem. bin lib MyGem. I want to create controller model, helper inside it I tried scaffold but didn't worked for me any idea !!!

Upvotes: 1

Views: 653

Answers (1)

Shannon
Shannon

Reputation: 3018

Use Rails Engines instead of a gem, which can include controllers, models, helpers, routes and other Rails elements.

Upvotes: 4

Related Questions