Last active
February 2, 2019 21:56
-
-
Save somazx/225015cefc7878c2726d884dc5f3648f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/application.rb | |
config.autoload_paths = Dir['app/domains/*/*/'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/domains/lms/controllers/lms/courses_controller.rb | |
module Lms | |
class CoursesController < ApplicationController | |
prepend_view_path( Rails.root.join('app/domains/lms/views') ) | |
def index | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/domains/lms/views/lms/courses/index.erb | |
<h1>Hello World</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources :courses, module: 'lms' |
Author
somazx
commented
Feb 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment