I am trying to organize files better within our site. We have several folders already set within views but I want to add subfolders to some of them. Below is an example of what we have and what I would like to achieve.
app/views/
-sitea/
–sitea_page1
–sitea_page2
-siteb/
–siteb__page1
–siteb__page2
-sitec/
–sitec_page1
–sitec_page2
–sitec_page3
–sitec_page4
…
–sitec_page10
Would like:
app/views/
-sitec/
–group1/
—sitec_page1
—sitec_page2
–group2/
—sitec_page3
—sitec_page4
–group3/
—sitec_page5
…
—sitec_page10
All of these pages in sitec are in the same controllers/sitec_controller.rb
class SitecController < SiteController
def sitec
end
def sitec_page1
end
def sitec_page2
end
…
The routes are:
scope :sitec do
get ‘/’, to: ‘sitec#sitec’, as: :sitec
get ‘/page2’, to: ‘sitec#page2’, as: :sitec_page2
…
end
Still somewhat new to Ruby on Rails so any help would be appreciated. The only resources I’ve found have been about setting a folder which I already have but not about going another layer deep within the folder.