Sha256: d3dc5cade5811261b400831d6bcdee3c7fec474ca35a3d83ba596c915271959c
Contents?: true
Size: 854 Bytes
Versions: 1
Compression:
Stored size: 854 Bytes
Contents
Rails.application.routes.draw do MegaBar::Engine.routes.draw do MegaRoute.load('/mega-bar').each do |route| get '/template_sections_for_layout/:id', to: 'utils#by_layout' # puts "MB: HEY: #{route[:path]} => #{route[:controller]}##{route[:action]} via #{route[:method]} as: #{route[:as]}" # if route[:path].include?('models') || route[:path].include?('survey') # puts route; # if route[:concerns] == 'paginatable' # # puts("#{route[:path]}(/#{route[:controller].singularize}_page/:page)") # match "#{route[:path]}(/#{route[:controller].singularize}_page/:page)" => "#{route[:controller]}##{route[:action]}", via: route[:method], as: route[:as], :page => 1 # else match route[:path] => "#{route[:controller]}##{route[:action]}", via: route[:method], as: route[:as] # end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.5.2 | config/routes.rb |