A partial backend to an e-learning course system. Hacky at best.
Add this (or similar) junk to your routes...
resources :completions
get 'certificate', to: 'certificate#index'
get 'pdcertificate', to: 'certificate#generate'
resources :messages
resources :lesson_components
resources :replies do
post 'star'
end
get '/course/:course_slug/modules', to: 'units#index'
get '/course/:course_slug/modules/:module_slug/:component_slug', to: 'units#lesson_component'
resources :lessons
resources :courses do
get 'dashboard'
end
Add this line to your application's Gemfile:
gem 'voyager'
And then execute:
$ bundle
Or install it yourself as:
$ gem install voyager
Run
$ rails voyager:install:migrations
Check
routes.rb
The gem is available as open source under the terms of the MIT License.