Restructuring my rails project

I currently have two controllers, models, and views called retain_users
and retain_queues. That is going to grow to have retain_pmrs,
retain_customers, etc. So I’m thinking I need to have: retain/quues,
retain/users, retain/pmrs, retain/…

Couple of questions:

Would my code change from:

class RetainQueuesController < RetainController

to

Module Retain
class QueuesController < RetainController

and the file moved to retain/queues.rb

Or can I keep the same names and just move the files?

The other question is does everything have to match? i.e. do I have to
move the view, models, and controllers together?

Is there a “How to” already written up on how to do this somewhere?

Thanks,
Perry

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs