Module: Sbdevpadi::Routes

Defined in:
lib/sbdevpadi/engine.rb

Class Method Summary collapse

Class Method Details

.draw(map) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/sbdevpadi/engine.rb', line 18

def self.draw(map)
  map.instance_exec do
    ["courses", "pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses", "tec_courses"].each do |res|
      resources res.to_sym
    end
    match "package_calculator" => "package_calculator#index", :as => :package_calculator 
  end
end