V
V
Valery Semenov2011-12-09 17:25:51
Ruby on Rails
Valery Semenov, 2011-12-09 17:25:51

Modular structure on rails. switcher question

How a two (or more) modular structure of an application is organized on rails - backend and frontend, for example, using some common models and settings, but nevertheless differing in their controllers and views. So that generation through scaffold continues to correctly generate models.

Example on Zend Framework

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
himik, 2011-12-09
@Ravall

app
|__controllers
|____foo
|______one_controller.rb
|____bar
|______two_controller.rb
|____baz
|______three_controller.rb
class Foo::OneController
class Bar::TwoController
class Baz::ThreeController

S
sl_bug, 2011-12-09
@sl_bug

app/
controllers/
welcome_controller.rb
blog/
welcome_controller.rb
news
welcome_controller.rb
models/
etc…

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question