Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Checkout this page, it will give you some insights on directory structure for Rails 3+ projects:</p> <p><a href="http://edgeapi.rubyonrails.org/classes/Rails/Engine.html">http://edgeapi.rubyonrails.org/classes/Rails/Engine.html</a></p> <blockquote> <p>Since Rails 3.0, applications and engines have more flexible path configuration (as opposed to the previous hardcoded path configuration). This means that you are not required to place your controllers at app/controllers, but in any place which you find convenient.</p> </blockquote> <p>Don't be scared with the fact that it's about Engines, it states in the very beginning: every Rails App is an Engine.</p> <p>UPDATE: Never had an opportunity to do that myself, but according to that page and <a href="http://api.rubyonrails.org/classes/Rails/Application/Configuration.html#method-i-paths">this</a>, you should add the following thing into your <code>config/application.rb</code> within <code>class Application &lt; Rails::Application</code>:</p> <pre><code>config.paths["app/controllers"] &lt;&lt; "app/v1/controllers" config.paths["app/controllers"] &lt;&lt; "app/v2/controllers" config.paths["app/controllers"] &lt;&lt; "app/v3/controllers" config.paths["app/models"] &lt;&lt; "app/v1/models" config.paths["app/models"] &lt;&lt; "app/v2/models" config.paths["app/models"] &lt;&lt; "app/v3/models" config.paths["app/views"] &lt;&lt; "app/v1/views" config.paths["app/views"] &lt;&lt; "app/v2/views" config.paths["app/views"] &lt;&lt; "app/v3/views" </code></pre> <p>Check this project as an example: <a href="https://github.com/forker/multiversion">https://github.com/forker/multiversion</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload